Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.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_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc.airGap.V_mrr.im|aimc.airGap.V_mrr.re|aimc.airGap.V_msr.im|aimc.airGap.V_msr.re|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.strayReluctance.port_p.Phi.im|aimc.stator.strayReluctance.port_p.Phi.re|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc.airGap.V_mrr.im|aimc.airGap.V_mrr.re|aimc.airGap.V_msr.im|aimc.airGap.V_msr.re|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.strayReluctance.port_p.Phi.im|aimc.stator.strayReluctance.port_p.Phi.re|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize") [: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.00161/0.00161, allocations: 179.5 kB / 8.48 MB, free: 1.883 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.344/1.344, allocations: 205.2 MB / 214.1 MB, free: 5.461 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.000949/0.000949, allocations: 87.66 kB / 262.1 MB, free: 5.512 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.992e-06/6.032e-06, allocations: 4 kB / 315 MB, free: 41.55 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06713/0.06715, allocations: 47.58 MB / 362.6 MB, free: 10 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.232/0.2992, allocations: 107.8 MB / 470.4 MB, free: 1.359 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000247/0.2995, allocations: 90.28 kB / 470.4 MB, free: 1.312 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.1857/0.4852, allocations: 79.11 MB / 0.5367 GB, free: 9.09 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002076/0.4855, allocations: 79.88 kB / 0.5367 GB, free: 9.012 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: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.008551/0.494, allocations: 3.207 MB / 0.5399 GB, free: 5.738 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/0.4941, allocations: 8.031 kB / 0.5399 GB, free: 5.73 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004429/0.4985, allocations: 0.7373 MB / 0.5406 GB, free: 4.988 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007618/0.5062, allocations: 3.356 MB / 0.5439 GB, free: 1.574 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001001/0.5063, allocations: 100 kB / 0.544 GB, free: 1.477 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004843/0.5068, allocations: 187.9 kB / 0.5442 GB, free: 1.293 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005571/0.5124, allocations: 3.219 MB / 0.5473 GB, free: 14.07 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005946/0.5183, allocations: 3.684 MB / 0.5509 GB, free: 10.26 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.213e-05/0.5184, allocations: 11.98 kB / 0.5509 GB, free: 10.25 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002498/0.5187, allocations: 0 / 0.5509 GB, free: 10.25 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001257/0.5188, allocations: 146.2 kB / 0.551 GB, free: 10.11 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02134/0.5401, allocations: 13.03 MB / 0.5638 GB, free: 12.75 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00144/0.5416, allocations: 1.067 MB / 0.5648 GB, free: 11.68 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002053/0.5437, allocations: 1.376 MB / 0.5662 GB, free: 10.3 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005531/0.5492, allocations: 3.29 MB / 0.5694 GB, free: 6.918 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.039e-05/0.5493, allocations: 55.81 kB / 0.5694 GB, free: 6.855 MB / 426.7 MB Notification: Performance of pre-optimization done (n=153): time 3.156e-06/0.5493, allocations: 0 / 0.5694 GB, free: 6.855 MB / 426.7 MB Notification: Performance of matching and sorting (n=173): time 0.0115/0.5608, allocations: 5.544 MB / 0.5748 GB, free: 1.207 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.427e-05/0.5609, allocations: 73.41 kB / 0.5749 GB, free: 1.125 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1125/0.6734, allocations: 1.357 MB / 0.5762 GB, free: 139.1 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002916/0.6737, allocations: 29.45 kB / 0.5763 GB, free: 139.1 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004951/0.6742, allocations: 1.141 MB / 0.5774 GB, free: 139 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003575/0.6746, allocations: 0.5689 MB / 0.5779 GB, free: 138.7 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.716e-05/0.6747, allocations: 0 / 0.5779 GB, free: 138.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.6748, allocations: 379.8 kB / 0.5783 GB, free: 138.4 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00108/0.6759, allocations: 0.8181 MB / 0.5791 GB, free: 138.4 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001143/0.677, allocations: 1.279 MB / 0.5803 GB, free: 137.9 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001567/0.6786, allocations: 1.105 MB / 0.5814 GB, free: 137.9 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.814e-06/0.6786, allocations: 3.812 kB / 0.5814 GB, free: 137.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=247) (initialization): time 0.004246/0.6829, allocations: 2.742 MB / 0.5841 GB, free: 137.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.6829, allocations: 7.844 kB / 0.5841 GB, free: 137.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.827e-05/0.6829, allocations: 17.59 kB / 0.5841 GB, free: 137.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001277/0.6842, allocations: 0.4984 MB / 0.5846 GB, free: 137.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001751/0.686, allocations: 445.4 kB / 0.585 GB, free: 137.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006287/0.6923, allocations: 5.926 MB / 0.5908 GB, free: 135.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001439/0.6937, allocations: 48.17 kB / 0.5909 GB, free: 135.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001457/0.6939, allocations: 75.03 kB / 0.5909 GB, free: 135.1 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (209): * Single equations (assignments): 207 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(8,56.2%) 30} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002822/0.6942, allocations: 152.4 kB / 0.5911 GB, free: 135 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002425/0.6944, allocations: 186.1 kB / 0.5913 GB, free: 134.9 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004145/0.6986, allocations: 2.655 MB / 0.5939 GB, free: 134.6 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.294e-05/0.6986, allocations: 17.66 kB / 0.5939 GB, free: 134.6 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.126e-05/0.6986, allocations: 7.203 kB / 0.5939 GB, free: 134.6 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.341e-05/0.6987, allocations: 10.44 kB / 0.5939 GB, free: 134.6 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007501/0.7062, allocations: 5.717 MB / 0.5995 GB, free: 133.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.192e-06/0.7062, allocations: 3.312 kB / 0.5995 GB, free: 133.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001196/0.7074, allocations: 271.4 kB / 0.5997 GB, free: 133.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001129/0.7085, allocations: 494.8 kB / 0.6002 GB, free: 133.7 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.793e-05/0.7086, allocations: 17.45 kB / 0.6002 GB, free: 133.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007187/0.7158, allocations: 9.79 MB / 0.6098 GB, free: 127.4 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.491e-06/0.7159, allocations: 3.562 kB / 0.6098 GB, free: 127.4 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005023/0.7209, allocations: 3.962 MB / 0.6137 GB, free: 126.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009962/0.7219, allocations: 478.8 kB / 0.6141 GB, free: 126.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003454/0.7223, allocations: 6.188 kB / 0.6141 GB, free: 126.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001028/0.7233, allocations: 55.91 kB / 0.6142 GB, free: 126.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001967/0.7235, allocations: 88.5 kB / 0.6143 GB, free: 126.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.98e-05/0.7236, allocations: 52.38 kB / 0.6143 GB, free: 126.5 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001319/0.725, allocations: 1.029 MB / 0.6153 GB, free: 126.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00208/0.7271, allocations: 0.5657 MB / 0.6159 GB, free: 126.4 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,aimc.stator.zeroInductor.i0,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (131): * Single equations (assignments): 126 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 12,(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005311/0.7276, allocations: 319.9 kB / 0.6162 GB, free: 126.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003412/0.731, allocations: 2.434 MB / 0.6185 GB, free: 126 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.731, allocations: 0 / 0.6185 GB, free: 126 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001928/0.733, allocations: 1.648 MB / 0.6202 GB, free: 125.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001668/0.7347, allocations: 346.3 kB / 0.6205 GB, free: 125.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009134/0.7438, allocations: 4.955 MB / 0.6253 GB, free: 124.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002241/0.7461, allocations: 2.552 MB / 0.6278 GB, free: 123.7 MB / 426.7 MB Notification: Performance of SimCode: time 6.12e-07/0.7461, allocations: 0 / 0.6278 GB, free: 123.7 MB / 426.7 MB Notification: Performance of Templates: time 0.04334/0.7895, allocations: 29.22 MB / 0.6564 GB, free: 117.9 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize_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_Initialize/AIMC_Initialize.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches