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.0009706/0.0009707, allocations: 196.1 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.277/1.277, allocations: 226.5 MB / 245.4 MB, free: 6.348 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007374/0.0007371, allocations: 102.6 kB / 297.4 MB, free: 6.648 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002223/0.0002224, allocations: 12 kB / 357.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1925/0.1927, allocations: 51.29 MB / 408.7 MB, free: 27.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1097/0.3025, allocations: 105.4 MB / 0.502 GB, free: 2.125 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002229/0.3027, allocations: 97.97 kB / 0.5021 GB, free: 2.031 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2399/0.5427, allocations: 41.62 MB / 0.5428 GB, free: 70.44 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.5427, allocations: 0 / 0.5428 GB, free: 70.44 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001548/0.5429, allocations: 47.94 kB / 0.5428 GB, free: 70.39 MB / 378.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.004645/0.5475, allocations: 2.188 MB / 0.5449 GB, free: 68.14 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/0.5476, allocations: 12.03 kB / 0.5449 GB, free: 68.13 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001029/0.5486, allocations: 286 kB / 0.5452 GB, free: 67.85 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002599/0.5512, allocations: 1.431 MB / 0.5466 GB, free: 66.36 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.137e-05/0.5513, allocations: 148.2 kB / 0.5468 GB, free: 66.22 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003996/0.5517, allocations: 196.2 kB / 0.5469 GB, free: 66.03 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003736/0.5555, allocations: 2.413 MB / 0.5493 GB, free: 63.53 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.432e-05/0.5556, allocations: 4.172 kB / 0.5493 GB, free: 63.52 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001912/0.5558, allocations: 83.94 kB / 0.5494 GB, free: 63.44 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.555e-05/0.5558, allocations: 87.67 kB / 0.5495 GB, free: 63.36 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002924/0.5588, allocations: 1.869 MB / 0.5513 GB, free: 61.48 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01013/0.5689, allocations: 7.852 MB / 0.559 GB, free: 53.39 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001533/0.5705, allocations: 1.29 MB / 0.5602 GB, free: 52.06 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001117/0.5716, allocations: 0.827 MB / 0.561 GB, free: 51.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000243/0.5719, allocations: 126.1 kB / 0.5612 GB, free: 51.09 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.211e-05/0.5719, allocations: 47.55 kB / 0.5612 GB, free: 51.04 MB / 378.7 MB Notification: Performance of pre-optimization done (n=99): time 3.376e-06/0.5719, allocations: 0 / 0.5612 GB, free: 51.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=115): time 0.01038/0.5823, allocations: 5.595 MB / 0.5667 GB, free: 45.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.008e-05/0.5824, allocations: 64.41 kB / 0.5667 GB, free: 45.27 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001794/0.5842, allocations: 1.263 MB / 0.568 GB, free: 44 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.412e-05/0.5843, allocations: 45.7 kB / 0.568 GB, free: 43.95 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004516/0.5848, allocations: 0.9116 MB / 0.5689 GB, free: 43.02 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002547/0.585, allocations: 414.1 kB / 0.5693 GB, free: 42.61 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.266e-05/0.5851, allocations: 28 kB / 0.5693 GB, free: 42.59 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.077e-05/0.5852, allocations: 357.9 kB / 0.5697 GB, free: 42.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008765/0.5861, allocations: 0.6442 MB / 0.5703 GB, free: 41.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009766/0.5871, allocations: 1.007 MB / 0.5713 GB, free: 40.43 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001989/0.5891, allocations: 1.735 MB / 0.573 GB, free: 38.55 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.495e-06/0.5891, allocations: 7.938 kB / 0.573 GB, free: 38.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.003212/0.5923, allocations: 2.197 MB / 0.5751 GB, free: 36.33 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.464e-05/0.5923, allocations: 8 kB / 0.5751 GB, free: 36.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.913e-05/0.5924, allocations: 12 kB / 0.5751 GB, free: 36.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008816/0.5933, allocations: 419.3 kB / 0.5755 GB, free: 35.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001144/0.5944, allocations: 331.5 kB / 0.5758 GB, free: 35.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003735/0.5982, allocations: 4.645 MB / 0.5804 GB, free: 30.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001118/0.5993, allocations: 91.81 kB / 0.5805 GB, free: 30.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001516/0.5995, allocations: 56 kB / 0.5805 GB, free: 30.51 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (158): * Single equations (assignments): 154 * 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: 2 * 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: 2 {(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001087/0.6006, allocations: 0.6028 MB / 0.5811 GB, free: 29.9 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003376/0.6009, allocations: 146.2 kB / 0.5813 GB, free: 29.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003084/0.604, allocations: 1.933 MB / 0.5831 GB, free: 27.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.016e-05/0.604, allocations: 15.94 kB / 0.5832 GB, free: 27.79 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/0.604, allocations: 4 kB / 0.5832 GB, free: 27.78 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.6041, allocations: 11.91 kB / 0.5832 GB, free: 27.77 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006359/0.6104, allocations: 4.073 MB / 0.5871 GB, free: 23.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.885e-06/0.6105, allocations: 7.984 kB / 0.5872 GB, free: 23.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009001/0.6114, allocations: 224 kB / 0.5874 GB, free: 23.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0011/0.6125, allocations: 474.8 kB / 0.5878 GB, free: 22.9 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.707e-05/0.6126, allocations: 27.98 kB / 0.5878 GB, free: 22.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004556/0.6172, allocations: 6.189 MB / 0.5939 GB, free: 16.29 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.6172, allocations: 0 / 0.5939 GB, free: 16.29 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003871/0.6211, allocations: 2.829 MB / 0.5967 GB, free: 13.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007583/0.6218, allocations: 359.1 kB / 0.597 GB, free: 13.03 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003362/0.6222, allocations: 32.08 kB / 0.597 GB, free: 13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00091/0.6231, allocations: 79.86 kB / 0.5971 GB, free: 12.92 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002042/0.6233, allocations: 84.88 kB / 0.5972 GB, free: 12.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.315e-05/0.6234, allocations: 32.03 kB / 0.5972 GB, free: 12.8 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001375/0.6248, allocations: 0.8643 MB / 0.5981 GB, free: 11.94 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6248, allocations: 0 / 0.5981 GB, free: 11.94 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0017/0.6265, allocations: 467.9 kB / 0.5985 GB, free: 11.48 MB / 378.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 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 95 * 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: 3 * 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: 3 {(2,100.0%) 12,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005297/0.6271, allocations: 313 kB / 0.5988 GB, free: 11.17 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002834/0.6299, allocations: 2.086 MB / 0.6008 GB, free: 9.012 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.6299, allocations: 4 kB / 0.6008 GB, free: 9.008 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001786/0.6317, allocations: 1.372 MB / 0.6022 GB, free: 7.574 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002689/0.6344, allocations: 388.1 kB / 0.6026 GB, free: 7.195 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006672/0.6411, allocations: 4.987 MB / 0.6074 GB, free: 2.145 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001273/0.6424, allocations: 1.626 MB / 0.609 GB, free: 500 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005013/0.6429, allocations: 115.4 kB / 0.6091 GB, free: 384 kB / 378.7 MB Notification: Performance of SimCode: time 7.71e-07/0.6429, allocations: 4 kB / 0.6091 GB, free: 380 kB / 378.7 MB Notification: Performance of Templates: time 0.06862/0.7116, allocations: 62.2 MB / 0.6699 GB, free: 2.172 MB / 442.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/jenkins1/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