Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_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_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_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_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_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 3.2.3+maint.om/package.mo): time 0.001053/0.001053, allocations: 173.9 kB / 8.475 MB, free: 1.848 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.426/1.426, allocations: 205.2 MB / 214.1 MB, free: 1.879 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009263/0.0009261, allocations: 87.38 kB / 262.1 MB, free: 1.824 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.594e-06/7.874e-06, allocations: 0 / 315 MB, free: 23.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1102, allocations: 47.59 MB / 362.6 MB, free: 7.383 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3167/0.427, allocations: 117.6 MB / 480.2 MB, free: 10.41 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002176/0.4273, allocations: 86.64 kB / 480.3 MB, free: 10.37 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.478/0.9053, allocations: 131.4 MB / 0.5973 GB, free: 85.77 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0009935/0.9064, allocations: 122.2 kB / 0.5975 GB, free: 85.75 MB / 410.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.02186/0.9283, allocations: 4.784 MB / 0.6021 GB, free: 82.73 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.067e-05/0.9283, allocations: 7.969 kB / 0.6021 GB, free: 82.73 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007539/0.9359, allocations: 0.9856 MB / 0.6031 GB, free: 81.91 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01345/0.9493, allocations: 4.506 MB / 0.6075 GB, free: 77.41 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003036/0.9497, allocations: 156 kB / 0.6076 GB, free: 77.26 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002122/0.9518, allocations: 287.9 kB / 0.6079 GB, free: 76.98 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01241/0.9642, allocations: 5.225 MB / 0.613 GB, free: 71.75 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01644/0.9807, allocations: 5.99 MB / 0.6189 GB, free: 65.57 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001339/0.9809, allocations: 7.844 kB / 0.6189 GB, free: 65.57 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005983/0.9815, allocations: 4 kB / 0.6189 GB, free: 65.56 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001896/0.9817, allocations: 245.8 kB / 0.6191 GB, free: 65.32 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03833/1.02, allocations: 20.2 MB / 0.6388 GB, free: 44.88 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002544/1.023, allocations: 1.996 MB / 0.6408 GB, free: 42.88 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003193/1.026, allocations: 2.597 MB / 0.6433 GB, free: 40.28 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009136/1.035, allocations: 5.482 MB / 0.6487 GB, free: 34.73 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.293e-05/1.035, allocations: 60.56 kB / 0.6487 GB, free: 34.66 MB / 410.7 MB Notification: Performance of pre-optimization done (n=254): time 4.439e-06/1.035, allocations: 0 / 0.6487 GB, free: 34.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=261): time 0.01609/1.051, allocations: 7.824 MB / 0.6564 GB, free: 26.72 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.117e-05/1.051, allocations: 81.47 kB / 0.6565 GB, free: 26.63 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005361/1.057, allocations: 2.13 MB / 0.6585 GB, free: 24.48 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008158/1.058, allocations: 25.7 kB / 0.6586 GB, free: 24.45 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008958/1.058, allocations: 1.698 MB / 0.6602 GB, free: 22.73 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001016/1.059, allocations: 0.8389 MB / 0.661 GB, free: 21.88 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001346/1.06, allocations: 0 / 0.661 GB, free: 21.88 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001924/1.06, allocations: 415.7 kB / 0.6614 GB, free: 21.47 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00191/1.062, allocations: 1.364 MB / 0.6628 GB, free: 20.1 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001943/1.064, allocations: 1.934 MB / 0.6647 GB, free: 17.93 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002408/1.066, allocations: 1.737 MB / 0.6664 GB, free: 16.17 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.167e-05/1.066, allocations: 8 kB / 0.6664 GB, free: 16.16 MB / 410.7 MB Notification: Performance of matching and sorting (n=356) (initialization): time 0.006622/1.073, allocations: 4.254 MB / 0.6705 GB, free: 11.84 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/1.073, allocations: 4 kB / 0.6705 GB, free: 11.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.704e-05/1.073, allocations: 16 kB / 0.6705 GB, free: 11.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00164/1.074, allocations: 0.6463 MB / 0.6712 GB, free: 11.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002527/1.077, allocations: 0.6163 MB / 0.6718 GB, free: 10.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007925/1.085, allocations: 9.412 MB / 0.681 GB, free: 0.6836 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002818/1.088, allocations: 59.92 kB / 0.681 GB, free: 0.625 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003959/1.088, allocations: 112 kB / 0.6811 GB, free: 0.5156 MB / 410.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 {(2,100.0%) 26,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005232/1.089, allocations: 168.2 kB / 0.6813 GB, free: 352 kB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005421/1.089, allocations: 292.4 kB / 0.6816 GB, free: 56 kB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1703/1.26, allocations: 4.036 MB / 0.6855 GB, free: 111.1 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.171e-05/1.26, allocations: 25.41 kB / 0.6855 GB, free: 111.1 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.619e-05/1.26, allocations: 13.59 kB / 0.6855 GB, free: 111.1 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.06e-05/1.26, allocations: 17 kB / 0.6856 GB, free: 111.1 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01411/1.274, allocations: 8.61 MB / 0.694 GB, free: 110.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.899e-06/1.274, allocations: 3.859 kB / 0.694 GB, free: 110.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001911/1.276, allocations: 402.5 kB / 0.6943 GB, free: 110.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002291/1.278, allocations: 0.8108 MB / 0.6951 GB, free: 110.2 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002303/1.278, allocations: 29.92 kB / 0.6952 GB, free: 110.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01146/1.29, allocations: 13.52 MB / 0.7084 GB, free: 102.8 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/1.29, allocations: 6.109 kB / 0.7084 GB, free: 102.8 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00793/1.298, allocations: 6.211 MB / 0.7144 GB, free: 102 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001584/1.299, allocations: 0.6898 MB / 0.7151 GB, free: 101.9 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004646/1.3, allocations: 21.92 kB / 0.7151 GB, free: 101.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001458/1.301, allocations: 89.09 kB / 0.7152 GB, free: 101.9 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003046/1.302, allocations: 159.5 kB / 0.7154 GB, free: 101.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001645/1.302, allocations: 72.17 kB / 0.7154 GB, free: 101.9 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.002447/1.304, allocations: 1.606 MB / 0.717 GB, free: 101.8 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003499/1.308, allocations: 0.8684 MB / 0.7179 GB, free: 101.8 MB / 410.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%) 1,(1,100.0%) 8,(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.00072/1.308, allocations: 429.4 kB / 0.7183 GB, free: 101.7 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005739/1.314, allocations: 3.898 MB / 0.7221 GB, free: 101.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.193e-06/1.314, allocations: 3.094 kB / 0.7221 GB, free: 101.1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003664/1.318, allocations: 2.525 MB / 0.7245 GB, free: 100.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003879/1.322, allocations: 0.5932 MB / 0.7251 GB, free: 100.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01788/1.34, allocations: 7.969 MB / 0.7329 GB, free: 98.03 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004177/1.344, allocations: 3.703 MB / 0.7365 GB, free: 96.71 MB / 410.7 MB Notification: Performance of SimCode: time 9.72e-07/1.344, allocations: 0 / 0.7365 GB, free: 96.71 MB / 410.7 MB Notification: Performance of Templates: time 0.07372/1.418, allocations: 45.66 MB / 0.7811 GB, free: 78.16 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_Transformer/AIMC_Transformer.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches