Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.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 4.0.0+maint.om/package.mo", uses=false) 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) 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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 94.83 kB / 16.3 MB, free: 5.996 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.001335/0.001335, allocations: 184 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.255/1.255, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002308/0.0002309, allocations: 5.375 kB / 300.7 MB, free: 6.062 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08579/0.08604, allocations: 50.43 MB / 351.2 MB, free: 11.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.01725/0.1033, allocations: 17.47 MB / 368.6 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01117/0.1145, allocations: 6.204 MB / 374.8 MB, free: 3.977 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003197/0.1178, allocations: 123.4 kB / 375 MB, free: 3.855 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003101/0.1209, allocations: 1.123 MB / 376.1 MB, free: 2.727 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005616/0.1265, allocations: 1.83 MB / 377.9 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002576/0.1291, allocations: 0.8446 MB / 378.8 MB, free: 48 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007585/0.1367, allocations: 4.369 MB / 383.1 MB, free: 11.67 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004683/0.1414, allocations: 3.742 MB / 386.9 MB, free: 7.871 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002938/0.1444, allocations: 2.028 MB / 388.9 MB, free: 5.836 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003505/0.1479, allocations: 2.502 MB / 391.4 MB, free: 3.324 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007755/0.1487, allocations: 339.9 kB / 391.7 MB, free: 2.992 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00156/0.1503, allocations: 0.5426 MB / 392.3 MB, free: 2.449 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001284/0.1516, allocations: 1.359 MB / 393.6 MB, free: 1.086 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001412/0.153, allocations: 1.194 MB / 394.8 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008262/0.1613, allocations: 8.695 MB / 403.5 MB, free: 7.164 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.1613, allocations: 0 / 403.5 MB, free: 7.164 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1613, allocations: 0 / 403.5 MB, free: 7.164 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002603/0.1616, allocations: 0 / 403.5 MB, free: 7.164 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01363/0.1752, allocations: 5.85 MB / 409.4 MB, free: 1.234 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.1752, allocations: 12.03 kB / 409.4 MB, free: 1.223 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005431/0.1807, allocations: 1.07 MB / 410.5 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008143/0.1888, allocations: 3.563 MB / 414 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004391/0.1893, allocations: 410.8 kB / 414.4 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001264/0.1906, allocations: 0.5311 MB / 414.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01226/0.2029, allocations: 6.977 MB / 421.9 MB, free: 4.523 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001077/0.203, allocations: 15.91 kB / 421.9 MB, free: 4.508 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004877/0.2035, allocations: 220 kB / 422.2 MB, free: 4.293 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002391/0.2038, allocations: 262.6 kB / 422.4 MB, free: 4.035 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1661/0.3699, allocations: 5.933 MB / 428.3 MB, free: 55.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03142/0.4013, allocations: 22.43 MB / 450.8 MB, free: 44.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005989/0.4073, allocations: 8.279 MB / 459.1 MB, free: 37.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008426/0.4158, allocations: 5.137 MB / 464.2 MB, free: 33.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.358e-05/0.4159, allocations: 62.41 kB / 464.3 MB, free: 33.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=234): time 3.988e-06/0.4159, allocations: 0 / 464.3 MB, free: 33.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=259): time 0.02202/0.438, allocations: 12.72 MB / 477 MB, free: 22.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.454e-05/0.438, allocations: 77.45 kB / 477.1 MB, free: 22.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003469/0.4415, allocations: 3.01 MB / 480.1 MB, free: 19.7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001782/0.4417, allocations: 69.7 kB / 480.1 MB, free: 19.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001067/0.4428, allocations: 2.486 MB / 482.6 MB, free: 17.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004657/0.4432, allocations: 0.8901 MB / 483.5 MB, free: 16.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001473/0.4434, allocations: 64 kB / 483.6 MB, free: 16.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.4435, allocations: 436.9 kB / 484 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001804/0.4453, allocations: 1.416 MB / 485.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002068/0.4474, allocations: 2.382 MB / 487.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002126/0.4496, allocations: 1.828 MB / 489.6 MB, free: 9.668 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.173e-05/0.4496, allocations: 8 kB / 489.6 MB, free: 9.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=420) (initialization): time 0.006827/0.4564, allocations: 4.929 MB / 494.6 MB, free: 4.645 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.911e-05/0.4565, allocations: 16 kB / 494.6 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.092e-05/0.4565, allocations: 36 kB / 494.6 MB, free: 4.594 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00134/0.4578, allocations: 0.688 MB / 495.3 MB, free: 3.887 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002451/0.4603, allocations: 0.7683 MB / 496.1 MB, free: 3.117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009283/0.4696, allocations: 9.624 MB / 0.4938 GB, free: 8.965 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002909/0.4725, allocations: 195.8 kB / 0.494 GB, free: 8.773 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003777/0.4729, allocations: 144 kB / 0.4942 GB, free: 8.633 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 139 * 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 (386): * Single equations (assignments): 380 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(6,75.0%) 20,(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003166/0.4761, allocations: 1.572 MB / 0.4957 GB, free: 7.051 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000828/0.4769, allocations: 347.7 kB / 0.496 GB, free: 6.707 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007697/0.4847, allocations: 4.35 MB / 0.5003 GB, free: 2.234 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-05/0.4847, allocations: 28 kB / 0.5003 GB, free: 2.207 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.85e-05/0.4847, allocations: 8 kB / 0.5003 GB, free: 2.199 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.17e-05/0.4848, allocations: 13.83 kB / 0.5003 GB, free: 2.188 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01744/0.5022, allocations: 9.375 MB / 0.5095 GB, free: 8.699 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.417e-05/0.5023, allocations: 8.094 kB / 0.5095 GB, free: 8.691 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00185/0.5042, allocations: 439.5 kB / 0.5099 GB, free: 8.262 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002213/0.5064, allocations: 0.8999 MB / 0.5108 GB, free: 7.336 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002043/0.5066, allocations: 63.97 kB / 0.5108 GB, free: 7.273 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01474/0.5213, allocations: 15.58 MB / 0.5261 GB, free: 6.766 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/0.5214, allocations: 8 kB / 0.5261 GB, free: 6.758 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009436/0.5308, allocations: 6.671 MB / 0.5326 GB, free: 15.76 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00164/0.5325, allocations: 0.7075 MB / 0.5333 GB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004485/0.5329, allocations: 59.98 kB / 0.5333 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001565/0.5345, allocations: 163.8 kB / 0.5335 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003866/0.5349, allocations: 193.6 kB / 0.5337 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001485/0.5351, allocations: 71.98 kB / 0.5337 GB, free: 14.55 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002757/0.5378, allocations: 2.02 MB / 0.5357 GB, free: 12.54 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5378, allocations: 0 / 0.5357 GB, free: 12.54 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002987/0.5408, allocations: 1.012 MB / 0.5367 GB, free: 11.52 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.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 (209): * Single equations (assignments): 202 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,72.2%) 20,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004305/0.5413, allocations: 223.2 kB / 0.5369 GB, free: 11.3 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006281/0.5476, allocations: 4.324 MB / 0.5411 GB, free: 6.883 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.875e-06/0.5476, allocations: 4.125 kB / 0.5411 GB, free: 6.879 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004261/0.5519, allocations: 2.84 MB / 0.5439 GB, free: 3.945 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004016/0.5559, allocations: 0.8816 MB / 0.5448 GB, free: 3.074 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01828/0.5742, allocations: 12.09 MB / 0.5566 GB, free: 6.898 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003101/0.5773, allocations: 3.52 MB / 0.56 GB, free: 3.344 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002699/0.58, allocations: 0.823 MB / 0.5608 GB, free: 2.52 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006004/0.5807, allocations: 243.4 kB / 0.5611 GB, free: 2.281 MB / 430.1 MB Notification: Performance of SimCode: time 6.01e-07/0.5807, allocations: 0 / 0.5611 GB, free: 2.281 MB / 430.1 MB Notification: Performance of Templates: time 0.2577/0.8384, allocations: 48.4 MB / 0.6083 GB, free: 125.5 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches