Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|cRun.v|cStart.v|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|cRun.v|cStart.v|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001038/0.001038, allocations: 197.4 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.271/1.271, allocations: 226.5 MB / 244.7 MB, free: 6.453 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007802/0.0007803, allocations: 103.8 kB / 296.8 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002704/0.0002704, allocations: 8 kB / 356.8 MB, free: 10.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2011/0.2014, allocations: 51.29 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz): time 0.006377/0.2078, allocations: 8.599 MB / 416.6 MB, free: 19.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00407/0.2119, allocations: 2.896 MB / 419.5 MB, free: 16.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006758/0.2126, allocations: 43.81 kB / 419.6 MB, free: 16.14 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001025/0.2137, allocations: 0.5048 MB / 420.1 MB, free: 15.63 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001219/0.2149, allocations: 0.6408 MB / 420.7 MB, free: 14.98 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004976/0.2154, allocations: 247.7 kB / 421 MB, free: 14.74 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001633/0.217, allocations: 2.495 MB / 423.5 MB, free: 12.23 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001261/0.2183, allocations: 1.426 MB / 424.9 MB, free: 10.76 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008231/0.2191, allocations: 0.8248 MB / 425.7 MB, free: 9.93 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009206/0.2201, allocations: 1.097 MB / 426.8 MB, free: 8.828 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001804/0.2203, allocations: 124 kB / 426.9 MB, free: 8.707 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004339/0.2207, allocations: 235.8 kB / 427.2 MB, free: 8.477 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004157/0.2211, allocations: 0.584 MB / 427.8 MB, free: 7.891 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006864/0.2218, allocations: 1.051 MB / 428.8 MB, free: 6.828 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001575/0.2234, allocations: 2.914 MB / 431.7 MB, free: 3.906 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.2234, allocations: 0 / 431.7 MB, free: 3.906 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2234, allocations: 0 / 431.7 MB, free: 3.906 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.641e-05/0.2235, allocations: 0 / 431.7 MB, free: 3.906 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 491 * Number of variables: 491 Notification: Performance of Generate backend data structure: time 0.003162/0.2266, allocations: 2.194 MB / 433.9 MB, free: 1.656 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.2267, allocations: 12.03 kB / 433.9 MB, free: 1.645 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006235/0.2273, allocations: 286 kB / 434.2 MB, free: 1.363 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001596/0.2289, allocations: 1.303 MB / 435.5 MB, free: 4 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001329/0.2291, allocations: 148.1 kB / 435.6 MB, free: 15.86 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002683/0.2293, allocations: 203.8 kB / 435.8 MB, free: 15.66 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003636/0.233, allocations: 2.403 MB / 438.2 MB, free: 13.22 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.766e-05/0.233, allocations: 4 kB / 438.3 MB, free: 13.21 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001689/0.2332, allocations: 76 kB / 438.3 MB, free: 13.14 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.547e-05/0.2333, allocations: 91.67 kB / 438.4 MB, free: 13.05 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003136/0.2365, allocations: 1.955 MB / 440.4 MB, free: 11.09 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01066/0.2471, allocations: 7.894 MB / 448.3 MB, free: 2.957 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001593/0.2488, allocations: 1.223 MB / 449.5 MB, free: 1.688 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001635/0.2504, allocations: 0.9488 MB / 450.4 MB, free: 0.7422 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002299/0.2506, allocations: 126 kB / 450.6 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.134e-05/0.2507, allocations: 43.56 kB / 450.6 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of pre-optimization done (n=95): time 2.415e-06/0.2507, allocations: 0 / 450.6 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of matching and sorting (n=111): time 0.01165/0.2623, allocations: 5.919 MB / 456.5 MB, free: 10.48 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.061e-05/0.2624, allocations: 68.34 kB / 456.6 MB, free: 10.41 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001671/0.2641, allocations: 1.302 MB / 457.9 MB, free: 9.098 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.673e-05/0.2642, allocations: 45.64 kB / 457.9 MB, free: 9.047 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005757/0.2648, allocations: 0.9199 MB / 458.9 MB, free: 8.113 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002832/0.2651, allocations: 390.3 kB / 459.2 MB, free: 7.727 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.347e-05/0.2651, allocations: 32 kB / 459.3 MB, free: 7.695 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.2653, allocations: 353.9 kB / 459.6 MB, free: 7.344 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009637/0.2662, allocations: 0.6402 MB / 460.3 MB, free: 6.703 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001141/0.2674, allocations: 1 MB / 461.3 MB, free: 5.551 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002195/0.2696, allocations: 1.72 MB / 463 MB, free: 3.684 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.2696, allocations: 8 kB / 463 MB, free: 3.676 MB / 330.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.00352/0.2731, allocations: 2.245 MB / 465.2 MB, free: 1.406 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.2732, allocations: 8 kB / 465.2 MB, free: 1.398 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.686e-05/0.2732, allocations: 12 kB / 465.2 MB, free: 1.387 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001247/0.2745, allocations: 496.2 kB / 465.7 MB, free: 0.8867 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001043/0.2755, allocations: 303.5 kB / 466 MB, free: 0.5898 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006296/0.2818, allocations: 6.531 MB / 472.6 MB, free: 9.656 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00106/0.2829, allocations: 83.91 kB / 472.6 MB, free: 9.574 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.857e-05/0.283, allocations: 56 kB / 472.7 MB, free: 9.52 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(2,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001059/0.2841, allocations: 0.6013 MB / 473.3 MB, free: 8.91 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002477/0.2843, allocations: 146.2 kB / 473.4 MB, free: 8.766 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003362/0.2877, allocations: 1.964 MB / 475.4 MB, free: 6.77 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.096e-05/0.2877, allocations: 12 kB / 475.4 MB, free: 6.758 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.2877, allocations: 8 kB / 475.4 MB, free: 6.75 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.236e-05/0.2878, allocations: 7.969 kB / 475.4 MB, free: 6.742 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006346/0.2941, allocations: 4.14 MB / 479.6 MB, free: 2.508 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.2941, allocations: 4 kB / 479.6 MB, free: 2.504 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008003/0.2949, allocations: 195.9 kB / 479.8 MB, free: 2.312 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00141/0.2964, allocations: 0.5342 MB / 480.3 MB, free: 1.766 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.607e-05/0.2965, allocations: 27.98 kB / 480.3 MB, free: 1.738 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00762/0.3041, allocations: 8.045 MB / 488.4 MB, free: 9.16 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.3041, allocations: 4 kB / 488.4 MB, free: 9.156 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004391/0.3085, allocations: 2.849 MB / 491.2 MB, free: 6.246 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006432/0.3092, allocations: 359.2 kB / 491.6 MB, free: 5.875 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001723/0.3094, allocations: 24 kB / 491.6 MB, free: 5.852 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007287/0.3101, allocations: 75.92 kB / 491.7 MB, free: 5.777 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002038/0.3103, allocations: 92.84 kB / 491.8 MB, free: 5.688 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.443e-05/0.3104, allocations: 31.98 kB / 491.8 MB, free: 5.656 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001272/0.3117, allocations: 0.8799 MB / 492.7 MB, free: 4.773 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3117, allocations: 4 kB / 492.7 MB, free: 4.77 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001487/0.3132, allocations: 439.9 kB / 493.1 MB, free: 4.34 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(1,100.0%) 1,(2,100.0%) 8,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003966/0.3136, allocations: 190.9 kB / 493.3 MB, free: 4.145 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003252/0.3168, allocations: 2.231 MB / 495.5 MB, free: 1.832 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/0.3169, allocations: 0 / 495.5 MB, free: 1.832 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002082/0.319, allocations: 1.511 MB / 497 MB, free: 252 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002072/0.321, allocations: 387.5 kB / 497.4 MB, free: 15.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006345/0.3274, allocations: 4.972 MB / 0.4906 GB, free: 10.85 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001187/0.3286, allocations: 1.634 MB / 0.4922 GB, free: 9.184 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000386/0.329, allocations: 107.4 kB / 0.4923 GB, free: 9.078 MB / 378.7 MB Notification: Performance of SimCode: time 7.31e-07/0.329, allocations: 0 / 0.4923 GB, free: 9.078 MB / 378.7 MB Notification: Performance of Templates: time 0.2142/0.5433, allocations: 70.46 MB / 0.5611 GB, free: 38.53 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_Steinmetz/IMC_Steinmetz.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches