Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|resistor.plug_p.reference.gamma|speed.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|resistor.plug_p.reference.gamma|speed.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001274/0.001274, allocations: 110.2 kB / 18.25 MB, free: 4.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 195.3 kB / 19.18 MB, free: 3.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.437/1.437, allocations: 205.1 MB / 225.1 MB, free: 12.32 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 63.86 kB / 281.4 MB, free: 3.148 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09686/0.09824, allocations: 46.62 MB / 328 MB, free: 4.449 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics): time 0.0298/0.1281, allocations: 27.08 MB / 355.1 MB, free: 9.234 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01802/0.1462, allocations: 7.989 MB / 363 MB, free: 1.219 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006575/0.1528, allocations: 171.4 kB / 363.2 MB, free: 1.051 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02237/0.1752, allocations: 9.366 MB / 372.6 MB, free: 7.645 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01239/0.1877, allocations: 3.362 MB / 375.9 MB, free: 4.266 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006471/0.1941, allocations: 1.833 MB / 377.8 MB, free: 2.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2106/0.4048, allocations: 12.18 MB / 390 MB, free: 11.87 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03488/0.4397, allocations: 24.53 MB / 414.5 MB, free: 1.859 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0258/0.4656, allocations: 7.887 MB / 422.4 MB, free: 0 / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01627/0.4819, allocations: 7.37 MB / 429.7 MB, free: 9.176 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006679/0.4886, allocations: 1.852 MB / 431.6 MB, free: 7.324 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01016/0.4988, allocations: 2.22 MB / 433.8 MB, free: 5.129 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006308/0.5052, allocations: 3.677 MB / 437.5 MB, free: 1.539 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0146/0.5198, allocations: 7.005 MB / 444.5 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02932/0.5492, allocations: 24.64 MB / 469.1 MB, free: 2.395 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.318e-06/0.5492, allocations: 4 kB / 469.1 MB, free: 2.391 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.5492, allocations: 0 / 469.1 MB, free: 2.391 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0007217/0.55, allocations: 0 / 469.1 MB, free: 2.391 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3092 * Number of variables: 3092 Notification: Performance of Generate backend data structure: time 0.04866/0.5986, allocations: 14.74 MB / 483.9 MB, free: 3.672 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.177e-05/0.5987, allocations: 8.031 kB / 483.9 MB, free: 3.664 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05371/0.6524, allocations: 9.413 MB / 493.3 MB, free: 10.35 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01676/0.6692, allocations: 6.893 MB / 0.4885 GB, free: 3.715 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009924/0.6703, allocations: 0.8179 MB / 0.4893 GB, free: 2.91 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005643/0.6759, allocations: 1.079 MB / 0.4903 GB, free: 1.848 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05481/0.7308, allocations: 18.76 MB / 0.5086 GB, free: 15.06 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006486/0.7315, allocations: 7.906 kB / 0.5086 GB, free: 15.05 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005302/0.7368, allocations: 461 kB / 0.5091 GB, free: 14.62 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009211/0.7378, allocations: 0.6911 MB / 0.5098 GB, free: 13.93 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0433/0.7811, allocations: 18.21 MB / 0.5275 GB, free: 11.71 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4598/1.241, allocations: 60.03 MB / 0.5862 GB, free: 111.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02953/1.27, allocations: 46.71 MB / 0.6318 GB, free: 65.79 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006334/1.277, allocations: 4.292 MB / 0.636 GB, free: 63.34 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01895/1.296, allocations: 12.39 MB / 0.6481 GB, free: 51.02 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.423e-05/1.296, allocations: 73.58 kB / 0.6481 GB, free: 50.93 MB / 446.1 MB Notification: Performance of pre-optimization done (n=385): time 6.552e-06/1.296, allocations: 0 / 0.6481 GB, free: 50.93 MB / 446.1 MB Notification: Performance of matching and sorting (n=391): time 0.04052/1.337, allocations: 19.31 MB / 0.667 GB, free: 31.54 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.381e-05/1.337, allocations: 98.41 kB / 0.6671 GB, free: 31.43 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005575/1.342, allocations: 4.338 MB / 0.6713 GB, free: 27.07 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007075/1.343, allocations: 89.7 kB / 0.6714 GB, free: 26.98 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001948/1.345, allocations: 4.827 MB / 0.6761 GB, free: 22.12 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00127/1.346, allocations: 1.345 MB / 0.6774 GB, free: 20.79 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001656/1.348, allocations: 1.277 MB / 0.6787 GB, free: 19.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.221e-05/1.348, allocations: 301.1 kB / 0.679 GB, free: 19.21 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003978/1.352, allocations: 3.12 MB / 0.682 GB, free: 16.08 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005202/1.357, allocations: 5.74 MB / 0.6876 GB, free: 9.117 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01052/1.368, allocations: 9.442 MB / 0.6968 GB, free: 14.44 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.977e-05/1.368, allocations: 24 kB / 0.6969 GB, free: 14.41 MB / 462.1 MB Notification: Performance of matching and sorting (n=822) (initialization): time 0.022/1.39, allocations: 10.28 MB / 0.7069 GB, free: 4.113 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001359/1.39, allocations: 47.94 kB / 0.7069 GB, free: 4.066 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001751/1.39, allocations: 84 kB / 0.707 GB, free: 3.984 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004298/1.394, allocations: 1.457 MB / 0.7084 GB, free: 2.523 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005997/1.4, allocations: 1.462 MB / 0.7099 GB, free: 1.059 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2226/1.623, allocations: 11.46 MB / 0.7211 GB, free: 144.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00563/1.629, allocations: 396.2 kB / 0.7214 GB, free: 144.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001526/1.63, allocations: 328.3 kB / 0.7218 GB, free: 144.6 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 396 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (752): * Single equations (assignments): 750 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(14,56,41.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008016/1.638, allocations: 4.177 MB / 0.7258 GB, free: 142.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00119/1.64, allocations: 445.9 kB / 0.7263 GB, free: 142.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01219/1.652, allocations: 7.358 MB / 0.7334 GB, free: 139.9 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008964/1.661, allocations: 6.033 MB / 0.7393 GB, free: 137.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.246e-05/1.661, allocations: 11.88 kB / 0.7393 GB, free: 137.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-05/1.661, allocations: 24.88 kB / 0.7394 GB, free: 137.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0269/1.688, allocations: 16.4 MB / 0.7554 GB, free: 130.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.058e-05/1.688, allocations: 0 / 0.7554 GB, free: 130.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00325/1.691, allocations: 0.7253 MB / 0.7561 GB, free: 130.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00351/1.695, allocations: 1.306 MB / 0.7574 GB, free: 130.1 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007557/1.695, allocations: 83.27 kB / 0.7574 GB, free: 130 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01272/1.708, allocations: 10.2 MB / 0.7674 GB, free: 120 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/1.708, allocations: 0 / 0.7674 GB, free: 120 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01559/1.724, allocations: 10.54 MB / 0.7777 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002485/1.726, allocations: 1.038 MB / 0.7787 GB, free: 108.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001219/1.728, allocations: 72 kB / 0.7788 GB, free: 108.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00306/1.731, allocations: 251.8 kB / 0.779 GB, free: 108.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008034/1.731, allocations: 271.5 kB / 0.7793 GB, free: 107.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003801/1.732, allocations: 116 kB / 0.7794 GB, free: 107.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00506/1.737, allocations: 2.904 MB / 0.7822 GB, free: 104.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.91e-07/1.737, allocations: 0 / 0.7822 GB, free: 104.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.008365/1.745, allocations: 1.843 MB / 0.784 GB, free: 103.1 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (imsQS.rotor.strayReluctance.port_p.reference.gamma,speed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (360): * Single equations (assignments): 358 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(14,56,41.3%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001157/1.747, allocations: 267.7 kB / 0.7843 GB, free: 102.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02822/1.775, allocations: 14.22 MB / 0.7982 GB, free: 88.62 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.025e-05/1.775, allocations: 0 / 0.7982 GB, free: 88.62 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006389/1.781, allocations: 3.634 MB / 0.8017 GB, free: 84.98 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005889/1.787, allocations: 1.089 MB / 0.8028 GB, free: 83.91 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02848/1.816, allocations: 18.67 MB / 0.821 GB, free: 65.21 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005627/1.821, allocations: 6.818 MB / 0.8277 GB, free: 58.34 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002086/1.823, allocations: 423.3 kB / 0.8281 GB, free: 57.93 MB / 462.1 MB Notification: Performance of SimCode: time 9.91e-07/1.824, allocations: 0 / 0.8281 GB, free: 57.93 MB / 462.1 MB Notification: Performance of Templates: time 0.4414/2.265, allocations: 179.4 MB / 1.003 GB, free: 37.16 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMS_Characteristics/IMS_Characteristics.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches