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_YD.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_YD,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",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,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",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD") [: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.001456/0.001455, allocations: 184.4 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.205/1.205, allocations: 221.4 MB / 229.9 MB, free: 3.078 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.0008912/0.0008913, allocations: 99.22 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.436e-06/8.466e-06, allocations: 4 kB / 336.5 MB, free: 9.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2006/0.2006, allocations: 50.39 MB / 386.9 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1119/0.3125, allocations: 110.9 MB / 497.8 MB, free: 7.848 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002313/0.3128, allocations: 92.78 kB / 497.9 MB, free: 7.758 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.3218/0.6345, allocations: 91.5 MB / 0.5756 GB, free: 33.43 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003238/0.6349, allocations: 92.12 kB / 0.5757 GB, free: 33.34 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: 1011 * Number of variables: 1011 Notification: Performance of Generate backend data structure: time 0.0101/0.645, allocations: 3.968 MB / 0.5796 GB, free: 29.31 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.6451, allocations: 8.031 kB / 0.5796 GB, free: 29.3 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00452/0.6496, allocations: 0.8261 MB / 0.5804 GB, free: 28.47 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008133/0.6577, allocations: 3.842 MB / 0.5841 GB, free: 24.57 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000174/0.6579, allocations: 128 kB / 0.5843 GB, free: 24.45 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009189/0.6589, allocations: 231.9 kB / 0.5845 GB, free: 24.22 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006717/0.6656, allocations: 4.201 MB / 0.5886 GB, free: 20.02 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006677/0.6723, allocations: 4.681 MB / 0.5931 GB, free: 15.2 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-05/0.6724, allocations: 4 kB / 0.5932 GB, free: 15.2 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003211/0.6727, allocations: 4 kB / 0.5932 GB, free: 15.19 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001087/0.6728, allocations: 171.7 kB / 0.5933 GB, free: 15.02 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02117/0.694, allocations: 16.32 MB / 0.6093 GB, free: 14.34 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002016/0.6961, allocations: 1.48 MB / 0.6107 GB, free: 12.85 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002519/0.6986, allocations: 1.872 MB / 0.6125 GB, free: 10.98 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006942/0.7056, allocations: 4.363 MB / 0.6168 GB, free: 6.523 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001928/0.7075, allocations: 1.439 MB / 0.6182 GB, free: 5.051 MB / 394.7 MB Notification: Performance of pre-optimization done (n=223): time 3.627e-06/0.7075, allocations: 4 kB / 0.6182 GB, free: 5.047 MB / 394.7 MB Notification: Performance of matching and sorting (n=226): time 0.01121/0.7188, allocations: 6.496 MB / 0.6245 GB, free: 14.45 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001039/0.7189, allocations: 239.6 kB / 0.6248 GB, free: 14.16 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00249/0.7214, allocations: 1.712 MB / 0.6264 GB, free: 12.42 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001501/0.7215, allocations: 33.69 kB / 0.6265 GB, free: 12.38 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001125/0.7227, allocations: 1.346 MB / 0.6278 GB, free: 11.01 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005677/0.7232, allocations: 0.7005 MB / 0.6285 GB, free: 10.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001175/0.7234, allocations: 0 / 0.6285 GB, free: 10.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.7236, allocations: 406.7 kB / 0.6289 GB, free: 9.895 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001547/0.7251, allocations: 1.106 MB / 0.6299 GB, free: 8.785 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001901/0.727, allocations: 1.652 MB / 0.6316 GB, free: 6.914 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00219/0.7292, allocations: 1.392 MB / 0.6329 GB, free: 5.523 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.706e-06/0.7292, allocations: 4 kB / 0.6329 GB, free: 5.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=304) (initialization): time 0.005966/0.7352, allocations: 3.645 MB / 0.6365 GB, free: 1.832 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.7352, allocations: 8.312 kB / 0.6365 GB, free: 1.824 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.003e-05/0.7353, allocations: 16 kB / 0.6365 GB, free: 1.809 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001748/0.737, allocations: 0.7633 MB / 0.6372 GB, free: 1.031 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001786/0.7388, allocations: 439.3 kB / 0.6377 GB, free: 0.6016 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01071/0.7495, allocations: 10.22 MB / 0.6476 GB, free: 5.906 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002008/0.7516, allocations: 91.98 kB / 0.6477 GB, free: 5.816 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001974/0.7518, allocations: 88 kB / 0.6478 GB, free: 5.73 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[3].tSwitch,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (248): * Single equations (assignments): 243 * 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 {(1,100.0%) 8,(9,33.3%) 25,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000401/0.7522, allocations: 178.9 kB / 0.648 GB, free: 5.547 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003524/0.7526, allocations: 237.1 kB / 0.6482 GB, free: 5.312 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006285/0.7588, allocations: 3.568 MB / 0.6517 GB, free: 1.676 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.917e-05/0.7589, allocations: 20 kB / 0.6517 GB, free: 1.656 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.97e-05/0.7589, allocations: 12 kB / 0.6517 GB, free: 1.645 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.133e-05/0.7589, allocations: 11.95 kB / 0.6517 GB, free: 1.633 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1394/0.8984, allocations: 7.258 MB / 0.6588 GB, free: 116.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.096e-06/0.8984, allocations: 2 kB / 0.6588 GB, free: 116.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001105/0.8995, allocations: 244 kB / 0.6591 GB, free: 116.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002021/0.9016, allocations: 0.9379 MB / 0.66 GB, free: 116.6 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001276/0.9017, allocations: 21.34 kB / 0.66 GB, free: 116.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01182/0.9135, allocations: 14.32 MB / 0.674 GB, free: 109.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.9136, allocations: 3.438 kB / 0.674 GB, free: 109.1 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006881/0.9204, allocations: 5.33 MB / 0.6792 GB, free: 108.5 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001502/0.922, allocations: 0.5778 MB / 0.6798 GB, free: 108.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006175/0.9226, allocations: 14.97 kB / 0.6798 GB, free: 108.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001348/0.924, allocations: 84.16 kB / 0.6798 GB, free: 108.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003285/0.9243, allocations: 163.8 kB / 0.68 GB, free: 108.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001297/0.9244, allocations: 59.08 kB / 0.6801 GB, free: 108.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.00197/0.9264, allocations: 1.281 MB / 0.6813 GB, free: 108.2 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002855/0.9293, allocations: 0.7284 MB / 0.682 GB, free: 108.2 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (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,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 21 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[1].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[3].tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (150): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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%) 13,(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 25,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005516/0.9298, allocations: 362 kB / 0.6824 GB, free: 108.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004097/0.934, allocations: 3.348 MB / 0.6856 GB, free: 107.6 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.934, allocations: 0 / 0.6856 GB, free: 107.6 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002824/0.9368, allocations: 2.319 MB / 0.6879 GB, free: 107 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00231/0.9391, allocations: 0.4921 MB / 0.6884 GB, free: 107 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01011/0.9492, allocations: 6.211 MB / 0.6944 GB, free: 105.8 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002702/0.952, allocations: 3.044 MB / 0.6974 GB, free: 105 MB / 426.7 MB Notification: Performance of SimCode: time 6.11e-07/0.952, allocations: 3.281 kB / 0.6974 GB, free: 105 MB / 426.7 MB Notification: Performance of Templates: time 0.06033/1.012, allocations: 39.79 MB / 0.7363 GB, free: 99.57 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_YD/IMC_YD.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches