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.001094/0.001093, allocations: 114.4 kB / 17.74 MB, free: 5.355 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.00112/0.00112, allocations: 183.1 kB / 18.66 MB, free: 4.438 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.397/1.397, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001089/0.001089, allocations: 43.94 kB / 328.5 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1026, allocations: 46.62 MB / 375.2 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.2542/0.3568, allocations: 20.22 MB / 395.4 MB, free: 0.875 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01343/0.3703, allocations: 5.946 MB / 401.3 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005631/0.3761, allocations: 116.4 kB / 401.4 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005252/0.3814, allocations: 1.347 MB / 402.8 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009456/0.3908, allocations: 1.904 MB / 404.7 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004634/0.3955, allocations: 1.249 MB / 405.9 MB, free: 9.695 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0099/0.4054, allocations: 6.117 MB / 412.1 MB, free: 6.41 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01056/0.416, allocations: 5.362 MB / 417.4 MB, free: 3.773 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007933/0.424, allocations: 2.818 MB / 420.2 MB, free: 2.094 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006908/0.431, allocations: 3.392 MB / 423.6 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002688/0.4337, allocations: 0.7812 MB / 424.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004901/0.4386, allocations: 1.066 MB / 425.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003175/0.4418, allocations: 1.948 MB / 427.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006623/0.4485, allocations: 3.349 MB / 430.8 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0135/0.462, allocations: 10.32 MB / 441.1 MB, free: 13.5 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.738e-05/0.4621, allocations: 11.98 kB / 441.1 MB, free: 13.49 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.4621, allocations: 0 / 441.1 MB, free: 13.49 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003146/0.4624, allocations: 0 / 441.1 MB, free: 13.49 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01958/0.482, allocations: 6.731 MB / 447.9 MB, free: 6.672 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.139e-05/0.4821, allocations: 8.031 kB / 447.9 MB, free: 6.664 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005473/0.4876, allocations: 1.028 MB / 448.9 MB, free: 5.633 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006938/0.4945, allocations: 3.375 MB / 452.3 MB, free: 2.184 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003506/0.4949, allocations: 386.6 kB / 452.6 MB, free: 1.805 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001378/0.4963, allocations: 0.5003 MB / 453.1 MB, free: 1.305 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0139/0.5102, allocations: 6.779 MB / 459.9 MB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001244/0.5104, allocations: 11.89 kB / 459.9 MB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005378/0.5109, allocations: 208 kB / 460.1 MB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002304/0.5112, allocations: 242.2 kB / 460.4 MB, free: 10 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01193/0.5231, allocations: 5.74 MB / 466.1 MB, free: 4.254 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03886/0.562, allocations: 20.89 MB / 487 MB, free: 14.87 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008248/0.5703, allocations: 8.556 MB / 495.6 MB, free: 5.355 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003209/0.5735, allocations: 2.081 MB / 497.6 MB, free: 3.27 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01002/0.5836, allocations: 5.928 MB / 0.4918 GB, free: 13.21 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.141e-05/0.5836, allocations: 60.56 kB / 0.4918 GB, free: 13.14 MB / 430.1 MB Notification: Performance of pre-optimization done (n=205): time 3.467e-06/0.5836, allocations: 0 / 0.4918 GB, free: 13.14 MB / 430.1 MB Notification: Performance of matching and sorting (n=222): time 0.0211/0.6048, allocations: 10.36 MB / 0.5019 GB, free: 2.555 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.148e-05/0.6049, allocations: 73.41 kB / 0.502 GB, free: 2.473 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005192/0.6101, allocations: 2.901 MB / 0.5048 GB, free: 15.56 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003177/0.6104, allocations: 65.7 kB / 0.5049 GB, free: 15.49 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001904/0.6123, allocations: 2.422 MB / 0.5073 GB, free: 13.05 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007811/0.6131, allocations: 0.8057 MB / 0.5081 GB, free: 12.24 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000817/0.614, allocations: 0.5101 MB / 0.5085 GB, free: 11.72 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.6141, allocations: 309.1 kB / 0.5088 GB, free: 11.41 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002094/0.6162, allocations: 1.267 MB / 0.5101 GB, free: 10.14 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002623/0.6188, allocations: 2.179 MB / 0.5122 GB, free: 7.562 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004936/0.6238, allocations: 3.672 MB / 0.5158 GB, free: 3.492 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.401e-05/0.6238, allocations: 8 kB / 0.5158 GB, free: 3.484 MB / 446.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.007289/0.6311, allocations: 4.463 MB / 0.5202 GB, free: 14.95 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.972e-05/0.6311, allocations: 19.98 kB / 0.5202 GB, free: 14.93 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.515e-05/0.6312, allocations: 28 kB / 0.5202 GB, free: 14.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001207/0.6324, allocations: 0.5099 MB / 0.5207 GB, free: 14.37 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002413/0.6348, allocations: 0.6942 MB / 0.5214 GB, free: 13.68 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008879/0.6437, allocations: 10.2 MB / 0.5313 GB, free: 2.781 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00248/0.6462, allocations: 171.8 kB / 0.5315 GB, free: 2.613 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003392/0.6466, allocations: 128 kB / 0.5316 GB, free: 2.488 MB / 462.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.002729/0.6493, allocations: 1.52 MB / 0.5331 GB, free: 0.957 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007523/0.6501, allocations: 333.9 kB / 0.5334 GB, free: 0.6289 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00671/0.6568, allocations: 3.867 MB / 0.5372 GB, free: 12.66 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.216e-05/0.6569, allocations: 24 kB / 0.5372 GB, free: 12.64 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.789e-05/0.6569, allocations: 11.94 kB / 0.5372 GB, free: 12.62 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.297e-05/0.6569, allocations: 19.89 kB / 0.5373 GB, free: 12.61 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01441/0.6713, allocations: 8.464 MB / 0.5455 GB, free: 3.953 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.064e-05/0.6714, allocations: 4 kB / 0.5455 GB, free: 3.949 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00157/0.673, allocations: 379.4 kB / 0.5459 GB, free: 3.578 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001852/0.6748, allocations: 0.7292 MB / 0.5466 GB, free: 2.824 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001703/0.675, allocations: 63.98 kB / 0.5467 GB, free: 2.762 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2417/0.9167, allocations: 16.6 MB / 0.5629 GB, free: 136.1 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.9168, allocations: 6.219 kB / 0.5629 GB, free: 136.1 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009038/0.9258, allocations: 5.582 MB / 0.5683 GB, free: 133.7 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001828/0.9277, allocations: 0.6678 MB / 0.569 GB, free: 133.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004958/0.9282, allocations: 52.47 kB / 0.569 GB, free: 133.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001501/0.9297, allocations: 130.9 kB / 0.5692 GB, free: 133.4 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004294/0.9301, allocations: 174.6 kB / 0.5693 GB, free: 133.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001359/0.9303, allocations: 68.81 kB / 0.5694 GB, free: 133.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003571/0.9338, allocations: 1.963 MB / 0.5713 GB, free: 132.6 MB / 478.1 MB Notification: Performance of sort global known variables: time 6.31e-07/0.9339, allocations: 0 / 0.5713 GB, free: 132.6 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004716/0.9386, allocations: 0.9308 MB / 0.5722 GB, free: 132.5 MB / 478.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.0006157/0.9392, allocations: 253.7 kB / 0.5725 GB, free: 132.4 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007757/0.947, allocations: 3.974 MB / 0.5763 GB, free: 130.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.167e-05/0.947, allocations: 4.344 kB / 0.5764 GB, free: 130.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004625/0.9517, allocations: 2.649 MB / 0.5789 GB, free: 128.9 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004499/0.9562, allocations: 0.8548 MB / 0.5798 GB, free: 128.6 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01848/0.9747, allocations: 9.64 MB / 0.5892 GB, free: 123.9 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003037/0.9777, allocations: 3.293 MB / 0.5924 GB, free: 122.6 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003344/0.9811, allocations: 0.7601 MB / 0.5931 GB, free: 122.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007689/0.9819, allocations: 219.4 kB / 0.5934 GB, free: 122.5 MB / 478.1 MB Notification: Performance of SimCode: time 1.503e-06/0.9819, allocations: 0 / 0.5934 GB, free: 122.5 MB / 478.1 MB Notification: Performance of Templates: time 0.06821/1.05, allocations: 45.36 MB / 0.6377 GB, free: 79.84 MB / 478.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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