Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.1..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.1..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001447/0.001447, allocations: 187.8 kB / 8.136 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.249/1.249, allocations: 221.4 MB / 229.9 MB, free: 3 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009383/0.0009383, allocations: 101.2 kB / 280.8 MB, free: 1.211 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.636e-06/8.676e-06, allocations: 4 kB / 336.5 MB, free: 9.465 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2032/0.2032, allocations: 50.39 MB / 386.9 MB, free: 38.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1216/0.3249, allocations: 118.6 MB / 0.4937 GB, free: 192 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000231/0.3251, allocations: 101.2 kB / 0.4938 GB, free: 92 kB / 378.7 MB Notification: Performance of FrontEnd: time 0.4125/0.7377, allocations: 131.9 MB / 0.6226 GB, free: 2.227 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003608/0.7381, allocations: 123.9 kB / 0.6227 GB, free: 2.105 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.01258/0.7507, allocations: 4.795 MB / 0.6274 GB, free: 13.24 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.7507, allocations: 8.031 kB / 0.6274 GB, free: 13.23 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005908/0.7566, allocations: 0.977 MB / 0.6284 GB, free: 12.25 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01134/0.768, allocations: 4.504 MB / 0.6328 GB, free: 7.664 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002342/0.7683, allocations: 156 kB / 0.6329 GB, free: 7.512 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001144/0.7694, allocations: 291.9 kB / 0.6332 GB, free: 7.227 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01056/0.78, allocations: 5.221 MB / 0.6383 GB, free: 2 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01256/0.7926, allocations: 5.971 MB / 0.6441 GB, free: 11.84 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001137/0.7927, allocations: 11.84 kB / 0.6441 GB, free: 11.83 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004544/0.7932, allocations: 4 kB / 0.6441 GB, free: 11.82 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002105/0.7934, allocations: 249.7 kB / 0.6444 GB, free: 11.58 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1556/0.949, allocations: 20.17 MB / 0.6641 GB, free: 80.76 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002383/0.9514, allocations: 1.998 MB / 0.666 GB, free: 80.74 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00321/0.9546, allocations: 2.605 MB / 0.6685 GB, free: 80.71 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008908/0.9636, allocations: 5.471 MB / 0.6739 GB, free: 80.03 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.465e-05/0.9637, allocations: 64.5 kB / 0.674 GB, free: 79.99 MB / 426.7 MB Notification: Performance of pre-optimization done (n=254): time 5.341e-06/0.9637, allocations: 0 / 0.674 GB, free: 79.99 MB / 426.7 MB Notification: Performance of matching and sorting (n=261): time 0.01316/0.9768, allocations: 7.831 MB / 0.6816 GB, free: 78.85 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.932e-05/0.9769, allocations: 81.31 kB / 0.6817 GB, free: 78.78 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002798/0.9797, allocations: 2.128 MB / 0.6838 GB, free: 78.57 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001687/0.9799, allocations: 28.42 kB / 0.6838 GB, free: 78.54 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006387/0.9805, allocations: 1.694 MB / 0.6854 GB, free: 77.84 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004955/0.981, allocations: 0.8381 MB / 0.6863 GB, free: 77.39 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001437/0.9812, allocations: 3.75 kB / 0.6863 GB, free: 77.39 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.9813, allocations: 420 kB / 0.6867 GB, free: 77.08 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001588/0.9829, allocations: 1.358 MB / 0.688 GB, free: 77.07 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001794/0.9847, allocations: 1.931 MB / 0.6899 GB, free: 76.45 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002298/0.987, allocations: 1.73 MB / 0.6916 GB, free: 76.41 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.939e-06/0.987, allocations: 9.688 kB / 0.6916 GB, free: 76.41 MB / 426.7 MB Notification: Performance of matching and sorting (n=356) (initialization): time 0.00604/0.9931, allocations: 4.261 MB / 0.6957 GB, free: 76 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.9931, allocations: 7 kB / 0.6957 GB, free: 76 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.521e-05/0.9931, allocations: 16.69 kB / 0.6958 GB, free: 76 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001564/0.9947, allocations: 0.6489 MB / 0.6964 GB, free: 75.95 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002557/0.9973, allocations: 0.6086 MB / 0.697 GB, free: 75.95 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008007/1.005, allocations: 9.4 MB / 0.7062 GB, free: 70.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002338/1.008, allocations: 63.58 kB / 0.7062 GB, free: 70.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000256/1.008, allocations: 107.6 kB / 0.7063 GB, free: 70.88 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (306): * Single equations (assignments): 301 * 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 {(3,88.9%) 25,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000459/1.008, allocations: 169.6 kB / 0.7065 GB, free: 70.77 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004648/1.009, allocations: 293.9 kB / 0.7068 GB, free: 70.62 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006203/1.015, allocations: 4.047 MB / 0.7107 GB, free: 70.19 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-05/1.015, allocations: 28.41 kB / 0.7107 GB, free: 70.19 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.596e-05/1.015, allocations: 11.47 kB / 0.7108 GB, free: 70.19 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.288e-05/1.015, allocations: 12.98 kB / 0.7108 GB, free: 70.19 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01258/1.028, allocations: 8.62 MB / 0.7192 GB, free: 69.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/1.028, allocations: 0 / 0.7192 GB, free: 69.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001818/1.03, allocations: 402.8 kB / 0.7196 GB, free: 69.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00206/1.032, allocations: 0.8089 MB / 0.7204 GB, free: 69.25 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000175/1.032, allocations: 26.98 kB / 0.7204 GB, free: 69.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01126/1.043, allocations: 13.51 MB / 0.7336 GB, free: 61.61 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/1.043, allocations: 0 / 0.7336 GB, free: 61.61 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008136/1.051, allocations: 6.215 MB / 0.7397 GB, free: 59.19 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001815/1.053, allocations: 0.691 MB / 0.7403 GB, free: 58.76 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000553/1.054, allocations: 15.27 kB / 0.7403 GB, free: 58.75 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001555/1.055, allocations: 88.14 kB / 0.7404 GB, free: 58.75 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003292/1.056, allocations: 157.6 kB / 0.7406 GB, free: 58.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001813/1.056, allocations: 68.78 kB / 0.7406 GB, free: 58.71 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002495/1.058, allocations: 1.603 MB / 0.7422 GB, free: 58.05 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003469/1.062, allocations: 0.8738 MB / 0.7431 GB, free: 58.04 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (191): * Single equations (assignments): 185 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 8,(2,100.0%) 26,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007249/1.063, allocations: 425.8 kB / 0.7435 GB, free: 57.93 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005632/1.068, allocations: 3.907 MB / 0.7473 GB, free: 56.22 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/1.068, allocations: 1.75 kB / 0.7473 GB, free: 56.22 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003461/1.072, allocations: 2.521 MB / 0.7497 GB, free: 54.96 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003279/1.075, allocations: 0.5929 MB / 0.7503 GB, free: 54.81 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01538/1.09, allocations: 7.943 MB / 0.7581 GB, free: 51.97 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004748/1.095, allocations: 3.708 MB / 0.7617 GB, free: 50.64 MB / 426.7 MB Notification: Performance of SimCode: time 1.011e-06/1.095, allocations: 0 / 0.7617 GB, free: 50.64 MB / 426.7 MB Notification: Performance of Templates: time 0.07486/1.17, allocations: 45.67 MB / 0.8063 GB, free: 31.02 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Transformer/IMC_Transformer.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches