Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_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 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.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.is.1.|smrE.is.2.|smrE.idq_rr.1.|smrE.idq_rr.2.|smrE.idq_sr.1.|smrE.idq_sr.2.|smrM.is.1.|smrM.is.2.|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.strayReluctance.port_p.Phi.im|smrM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.is.1.|smrE.is.2.|smrE.idq_rr.1.|smrE.idq_rr.2.|smrE.idq_sr.1.|smrE.idq_sr.2.|smrM.is.1.|smrM.is.2.|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.strayReluctance.port_p.Phi.im|smrM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00081/0.00081, allocations: 93.22 kB / 17.3 MB, free: 6.387 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.0009496/0.0009496, allocations: 174.1 kB / 18.2 MB, free: 5.551 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.439/1.439, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0004589/0.0004589, allocations: 16 kB / 281.4 MB, free: 3.402 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1042, allocations: 47.58 MB / 329 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.02099/0.1252, allocations: 19.12 MB / 348.1 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0143/0.1396, allocations: 5.831 MB / 353.9 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003887/0.1435, allocations: 111.4 kB / 354 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004281/0.1478, allocations: 1.134 MB / 355.2 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007033/0.1549, allocations: 1.725 MB / 356.9 MB, free: 7.703 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00404/0.159, allocations: 1.131 MB / 358 MB, free: 6.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00973/0.1687, allocations: 6.66 MB / 364.7 MB, free: 15.89 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006313/0.1751, allocations: 4.44 MB / 369.1 MB, free: 11.36 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00385/0.179, allocations: 2.03 MB / 371.2 MB, free: 9.32 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004494/0.1835, allocations: 2.777 MB / 373.9 MB, free: 6.531 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00119/0.1847, allocations: 324 kB / 374.3 MB, free: 6.215 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0024/0.1871, allocations: 0.6167 MB / 374.9 MB, free: 5.598 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001799/0.1889, allocations: 1.386 MB / 376.3 MB, free: 4.207 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004635/0.1936, allocations: 2.761 MB / 379 MB, free: 1.426 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2212/0.4148, allocations: 9.621 MB / 388.6 MB, free: 23.58 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.4148, allocations: 0 / 388.6 MB, free: 23.58 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.935e-06/0.4149, allocations: 0 / 388.6 MB, free: 23.58 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0005286/0.4154, allocations: 1.062 kB / 388.6 MB, free: 23.58 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.02063/0.436, allocations: 5.531 MB / 394.2 MB, free: 20.55 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.294e-05/0.4361, allocations: 9.969 kB / 394.2 MB, free: 20.55 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006992/0.4431, allocations: 1.013 MB / 395.2 MB, free: 20.12 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008124/0.4513, allocations: 3.28 MB / 398.5 MB, free: 18.94 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000355/0.4516, allocations: 400.2 kB / 398.9 MB, free: 18.92 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001564/0.4532, allocations: 0.4987 MB / 399.4 MB, free: 18.92 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01573/0.4689, allocations: 6.788 MB / 406.2 MB, free: 17.37 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001526/0.4692, allocations: 10.78 kB / 406.2 MB, free: 17.36 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005079/0.4697, allocations: 209.5 kB / 406.4 MB, free: 17.36 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001872/0.4699, allocations: 242.4 kB / 406.6 MB, free: 17.34 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01071/0.4806, allocations: 5.773 MB / 412.4 MB, free: 14.8 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03643/0.517, allocations: 21.21 MB / 433.6 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008979/0.5261, allocations: 8.561 MB / 442.1 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003555/0.5297, allocations: 2.13 MB / 444.3 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01168/0.5414, allocations: 5.954 MB / 450.2 MB, free: 9.031 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.182e-05/0.5415, allocations: 60.56 kB / 450.3 MB, free: 8.965 MB / 350.1 MB Notification: Performance of pre-optimization done (n=205): time 3.697e-06/0.5415, allocations: 0 / 450.3 MB, free: 8.965 MB / 350.1 MB Notification: Performance of matching and sorting (n=222): time 0.02348/0.565, allocations: 10.41 MB / 460.7 MB, free: 14.37 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.056e-05/0.5651, allocations: 77.41 kB / 460.8 MB, free: 14.28 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005878/0.571, allocations: 2.9 MB / 463.7 MB, free: 11.37 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000651/0.5716, allocations: 65.7 kB / 463.7 MB, free: 11.3 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002073/0.5737, allocations: 2.354 MB / 466.1 MB, free: 8.926 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001074/0.5748, allocations: 0.7639 MB / 466.9 MB, free: 8.168 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003665/0.5752, allocations: 231.8 kB / 467.1 MB, free: 7.934 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.5753, allocations: 301.1 kB / 467.4 MB, free: 7.637 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002266/0.5776, allocations: 1.286 MB / 468.7 MB, free: 6.348 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002791/0.5804, allocations: 2.196 MB / 470.9 MB, free: 3.77 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005092/0.5855, allocations: 3.701 MB / 474.6 MB, free: 15.79 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.697e-05/0.5855, allocations: 8 kB / 474.6 MB, free: 15.78 MB / 382.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.008046/0.5936, allocations: 4.468 MB / 479 MB, free: 11.42 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.363e-05/0.5937, allocations: 16 kB / 479.1 MB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-05/0.5937, allocations: 34.25 kB / 479.1 MB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001245/0.595, allocations: 0.5138 MB / 479.6 MB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002605/0.5976, allocations: 0.6955 MB / 480.3 MB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008857/0.6065, allocations: 9.357 MB / 489.7 MB, free: 236 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003773/0.6103, allocations: 179.8 kB / 489.8 MB, free: 56 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003423/0.6106, allocations: 128.9 kB / 490 MB, free: 15.93 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (348): * Single equations (assignments): 341 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(3,11,100.0%), (1,3,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004484/0.6151, allocations: 1.524 MB / 491.5 MB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000962/0.6161, allocations: 316.1 kB / 491.8 MB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00701/0.6231, allocations: 3.901 MB / 495.7 MB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-05/0.6232, allocations: 27.98 kB / 495.7 MB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.521e-05/0.6232, allocations: 8 kB / 495.7 MB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.27e-05/0.6232, allocations: 12.05 kB / 495.7 MB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01565/0.6389, allocations: 8.511 MB / 0.4924 GB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.175e-05/0.6389, allocations: 4.031 kB / 0.4924 GB, free: 1.512 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001709/0.6406, allocations: 391.6 kB / 0.4928 GB, free: 1.148 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001953/0.6426, allocations: 0.7239 MB / 0.4935 GB, free: 412 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001979/0.6428, allocations: 55.98 kB / 0.4936 GB, free: 356 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01459/0.6574, allocations: 15.23 MB / 0.5084 GB, free: 140 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.664e-06/0.6575, allocations: 8 kB / 0.5084 GB, free: 132 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009837/0.6673, allocations: 5.594 MB / 0.5139 GB, free: 10.42 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002377/0.6697, allocations: 0.661 MB / 0.5146 GB, free: 9.738 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006478/0.6704, allocations: 59.92 kB / 0.5146 GB, free: 9.68 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001595/0.672, allocations: 147.9 kB / 0.5147 GB, free: 9.535 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004845/0.6725, allocations: 163.7 kB / 0.5149 GB, free: 9.379 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001475/0.6727, allocations: 67.98 kB / 0.515 GB, free: 9.312 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00354/0.6762, allocations: 1.967 MB / 0.5169 GB, free: 7.348 MB / 430.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6762, allocations: 192 / 0.5169 GB, free: 7.348 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004634/0.6809, allocations: 0.9337 MB / 0.5178 GB, free: 6.414 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],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 (185): * Single equations (assignments): 177 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,11,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007266/0.6816, allocations: 246.4 kB / 0.518 GB, free: 6.191 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006773/0.6884, allocations: 3.98 MB / 0.5219 GB, free: 2.207 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.464e-06/0.6884, allocations: 4.875 kB / 0.5219 GB, free: 2.203 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004344/0.6928, allocations: 2.664 MB / 0.5245 GB, free: 15.48 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00629/0.6991, allocations: 0.8044 MB / 0.5253 GB, free: 14.68 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02116/0.7203, allocations: 11.97 MB / 0.537 GB, free: 2.656 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2154/0.9357, allocations: 3.288 MB / 0.5402 GB, free: 157.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003476/0.9393, allocations: 0.7574 MB / 0.541 GB, free: 157.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008518/0.9401, allocations: 225.4 kB / 0.5412 GB, free: 157.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.963e-06/0.9401, allocations: 0 / 0.5412 GB, free: 157.7 MB / 446.1 MB Notification: Performance of Templates: time 0.07854/1.019, allocations: 44.92 MB / 0.585 GB, free: 128.4 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMR_Inverter/SMR_Inverter.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches