Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.003369/0.003369, allocations: 186.9 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.609/3.609, allocations: 205.4 MB / 222.5 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001964/0.001965, allocations: 94.86 kB / 270.9 MB, free: 13.39 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000652/0.0006524, allocations: 15.98 kB / 327 MB, free: 15.1 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.162/0.1627, allocations: 47.58 MB / 374.5 MB, free: 15.44 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.4543/0.6171, allocations: 16.24 MB / 390.8 MB, free: 10.02 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0255/0.6427, allocations: 5.768 MB / 396.6 MB, free: 9.84 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006754/0.6496, allocations: 105.3 kB / 396.7 MB, free: 9.809 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007976/0.6576, allocations: 1.006 MB / 397.7 MB, free: 9.559 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01508/0.6728, allocations: 1.69 MB / 399.4 MB, free: 9.441 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008264/0.6811, allocations: 0.8269 MB / 400.2 MB, free: 9.391 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.02993/0.7111, allocations: 4.082 MB / 404.3 MB, free: 8.297 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03028/0.7415, allocations: 3.58 MB / 407.8 MB, free: 6.898 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01761/0.7592, allocations: 1.906 MB / 409.8 MB, free: 6.035 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01889/0.7782, allocations: 2.394 MB / 412.1 MB, free: 4.734 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.007691/0.786, allocations: 320.2 kB / 412.5 MB, free: 4.734 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006957/0.793, allocations: 0.5363 MB / 413 MB, free: 4.629 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004688/0.7978, allocations: 1.313 MB / 414.3 MB, free: 3.723 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005565/0.8034, allocations: 1.13 MB / 415.4 MB, free: 3.039 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02199/0.8255, allocations: 8.309 MB / 423.7 MB, free: 12.31 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.8256, allocations: 0 / 423.7 MB, free: 12.31 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.178e-06/0.8256, allocations: 0 / 423.7 MB, free: 12.31 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0004776/0.8261, allocations: 0 / 423.7 MB, free: 12.31 MB / 298.7 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.03438/0.8605, allocations: 5.566 MB / 429.3 MB, free: 6.707 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.034e-05/0.8606, allocations: 8.031 kB / 429.3 MB, free: 6.699 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0134/0.874, allocations: 1.008 MB / 430.3 MB, free: 5.684 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01773/0.8918, allocations: 3.225 MB / 433.6 MB, free: 2.398 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001274/0.8932, allocations: 402.2 kB / 433.9 MB, free: 2.004 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003507/0.8968, allocations: 0.5076 MB / 434.5 MB, free: 1.496 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03829/0.9351, allocations: 6.697 MB / 441.1 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000494/0.9357, allocations: 11.89 kB / 441.2 MB, free: 10.72 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00278/0.9385, allocations: 212 kB / 441.4 MB, free: 10.51 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006461/0.9393, allocations: 238.2 kB / 441.6 MB, free: 10.28 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03212/0.9714, allocations: 5.736 MB / 447.3 MB, free: 4.531 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09543/1.067, allocations: 21.13 MB / 468.5 MB, free: 14.91 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02295/1.09, allocations: 8.541 MB / 477 MB, free: 5.426 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02588/1.116, allocations: 4.961 MB / 482 MB, free: 340 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001211/1.116, allocations: 64.55 kB / 482 MB, free: 268 kB / 346.7 MB Notification: Performance of pre-optimization done (n=219): time 9.157e-06/1.116, allocations: 0 / 482 MB, free: 268 kB / 346.7 MB Notification: Performance of matching and sorting (n=238): time 0.065/1.181, allocations: 11.04 MB / 493.1 MB, free: 5 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001265/1.181, allocations: 81.34 kB / 493.1 MB, free: 4.906 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01136/1.193, allocations: 2.809 MB / 496 MB, free: 2.086 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007658/1.194, allocations: 65.7 kB / 496 MB, free: 2.016 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00385/1.198, allocations: 2.185 MB / 498.2 MB, free: 15.81 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002156/1.2, allocations: 0.8164 MB / 499 MB, free: 14.98 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000588/1.2, allocations: 56 kB / 499.1 MB, free: 14.93 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0005355/1.201, allocations: 433.1 kB / 499.5 MB, free: 14.49 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006718/1.208, allocations: 1.318 MB / 0.4891 GB, free: 13.17 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008196/1.216, allocations: 2.19 MB / 0.4912 GB, free: 10.59 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007934/1.224, allocations: 1.693 MB / 0.4929 GB, free: 8.875 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.348e-05/1.224, allocations: 8 kB / 0.4929 GB, free: 8.867 MB / 378.7 MB Notification: Performance of matching and sorting (n=383) (initialization): time 0.02168/1.246, allocations: 4.348 MB / 0.4971 GB, free: 4.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.288e-05/1.246, allocations: 20 kB / 0.4971 GB, free: 4.391 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.012e-05/1.246, allocations: 24 kB / 0.4972 GB, free: 4.367 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003232/1.249, allocations: 0.5098 MB / 0.4977 GB, free: 3.836 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008091/1.258, allocations: 0.7215 MB / 0.4984 GB, free: 3.113 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02177/1.279, allocations: 9.472 MB / 0.5076 GB, free: 8.973 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00645/1.286, allocations: 183.8 kB / 0.5078 GB, free: 8.793 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0011/1.287, allocations: 132 kB / 0.5079 GB, free: 8.664 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 124 * 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 (358): * Single equations (assignments): 351 * 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: 5 * 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: 5 {(1,100.0%) 1,(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007597/1.295, allocations: 1.524 MB / 0.5094 GB, free: 7.129 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001579/1.296, allocations: 328 kB / 0.5097 GB, free: 6.805 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01953/1.316, allocations: 4.027 MB / 0.5137 GB, free: 2.68 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.747e-05/1.316, allocations: 24 kB / 0.5137 GB, free: 2.656 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.389e-05/1.316, allocations: 11.98 kB / 0.5137 GB, free: 2.645 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001015/1.316, allocations: 7.969 kB / 0.5137 GB, free: 2.637 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04253/1.359, allocations: 8.817 MB / 0.5223 GB, free: 9.605 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.045e-05/1.359, allocations: 4 kB / 0.5223 GB, free: 9.602 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005219/1.364, allocations: 420.1 kB / 0.5227 GB, free: 9.191 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004995/1.369, allocations: 0.7209 MB / 0.5234 GB, free: 8.445 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007798/1.37, allocations: 63.98 kB / 0.5235 GB, free: 8.383 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4825/1.853, allocations: 15.35 MB / 0.5385 GB, free: 117.8 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-05/1.853, allocations: 9.344 kB / 0.5385 GB, free: 117.8 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02744/1.88, allocations: 6.278 MB / 0.5446 GB, free: 114.8 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004121/1.884, allocations: 0.6609 MB / 0.5453 GB, free: 114.6 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002256/1.887, allocations: 62.8 kB / 0.5453 GB, free: 114.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005582/1.892, allocations: 149.2 kB / 0.5455 GB, free: 114.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001514/1.894, allocations: 181.5 kB / 0.5456 GB, free: 114.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005994/1.895, allocations: 71.72 kB / 0.5457 GB, free: 114.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.009616/1.904, allocations: 1.887 MB / 0.5475 GB, free: 113.8 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.463e-06/1.904, allocations: 0 / 0.5475 GB, free: 113.8 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01049/1.915, allocations: 0.9421 MB / 0.5485 GB, free: 113.7 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * 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 (201): * Single equations (assignments): 193 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 1,(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.001576/1.917, allocations: 224.9 kB / 0.5487 GB, free: 113.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01771/1.934, allocations: 4.068 MB / 0.5526 GB, free: 111.6 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.865e-05/1.934, allocations: 9 kB / 0.5527 GB, free: 111.6 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01043/1.945, allocations: 2.735 MB / 0.5553 GB, free: 110 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009799/1.955, allocations: 0.7801 MB / 0.5561 GB, free: 109.8 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0432/1.998, allocations: 11.53 MB / 0.5674 GB, free: 103.3 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009875/2.008, allocations: 3.317 MB / 0.5706 GB, free: 102 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002496/2.01, allocations: 246.5 kB / 0.5708 GB, free: 102 MB / 410.7 MB Notification: Performance of SimCode: time 2.225e-06/2.011, allocations: 0 / 0.5708 GB, free: 102 MB / 410.7 MB Notification: Performance of Templates: time 1.284/3.295, allocations: 234.4 MB / 0.7997 GB, free: 38.12 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches