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.001437/0.001437, allocations: 108.4 kB / 18.34 MB, free: 4.699 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.001577/0.001577, allocations: 190.9 kB / 19.28 MB, free: 3.766 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.324/1.324, allocations: 205.1 MB / 225.2 MB, free: 12.26 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.001197/0.001197, allocations: 47.94 kB / 282.1 MB, free: 2.445 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07979/0.081, allocations: 46.63 MB / 328.7 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.01984/0.1009, allocations: 20.23 MB / 349 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01219/0.1131, allocations: 5.944 MB / 354.9 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003967/0.1172, allocations: 123.4 kB / 355 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004582/0.1218, allocations: 1.342 MB / 356.4 MB, free: 7.984 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006804/0.1286, allocations: 1.91 MB / 358.3 MB, free: 6.062 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003337/0.132, allocations: 1.24 MB / 359.5 MB, free: 4.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008138/0.1401, allocations: 6.122 MB / 365.6 MB, free: 14.67 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006567/0.1467, allocations: 5.363 MB / 371 MB, free: 9.223 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00443/0.1512, allocations: 2.831 MB / 373.8 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005416/0.1566, allocations: 3.386 MB / 377.2 MB, free: 2.984 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001712/0.1584, allocations: 0.7812 MB / 378 MB, free: 2.203 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002608/0.161, allocations: 1.07 MB / 379.1 MB, free: 1.133 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1667/0.3277, allocations: 1.932 MB / 381 MB, free: 22.44 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005339/0.3331, allocations: 3.349 MB / 384.3 MB, free: 22.21 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01032/0.3434, allocations: 10.29 MB / 394.6 MB, free: 21.14 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.3434, allocations: 0 / 394.6 MB, free: 21.14 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3435, allocations: 3.5 kB / 394.6 MB, free: 21.14 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002734/0.3437, allocations: 0 / 394.6 MB, free: 21.14 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.01796/0.3617, allocations: 6.589 MB / 401.2 MB, free: 18.14 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.3618, allocations: 9.625 kB / 401.2 MB, free: 18.14 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004819/0.3666, allocations: 1.004 MB / 402.2 MB, free: 17.66 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006466/0.3731, allocations: 3.344 MB / 405.6 MB, free: 15.45 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002118/0.3733, allocations: 382.6 kB / 406 MB, free: 15.27 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001185/0.3745, allocations: 0.5083 MB / 406.5 MB, free: 15.1 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01383/0.3883, allocations: 6.768 MB / 413.2 MB, free: 11.16 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001343/0.3885, allocations: 15.11 kB / 413.2 MB, free: 11.15 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00051/0.389, allocations: 206.9 kB / 413.5 MB, free: 11 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001845/0.3892, allocations: 240.7 kB / 413.7 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0108/0.4, allocations: 5.74 MB / 419.4 MB, free: 7.977 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03468/0.4348, allocations: 20.84 MB / 440.3 MB, free: 3.246 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007895/0.4427, allocations: 8.555 MB / 448.8 MB, free: 9.801 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003502/0.4462, allocations: 2.115 MB / 450.9 MB, free: 7.691 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01071/0.457, allocations: 5.922 MB / 456.9 MB, free: 1.715 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.973e-05/0.457, allocations: 56.56 kB / 456.9 MB, free: 1.652 MB / 350.1 MB Notification: Performance of pre-optimization done (n=205): time 3.977e-06/0.457, allocations: 0 / 456.9 MB, free: 1.652 MB / 350.1 MB Notification: Performance of matching and sorting (n=222): time 0.01982/0.4769, allocations: 10.26 MB / 467.2 MB, free: 7.203 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.157e-05/0.4769, allocations: 73.41 kB / 467.2 MB, free: 7.117 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004513/0.4815, allocations: 2.904 MB / 470.1 MB, free: 4.203 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002133/0.4817, allocations: 61.7 kB / 470.2 MB, free: 4.137 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001511/0.4832, allocations: 2.357 MB / 472.6 MB, free: 1.766 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006237/0.4838, allocations: 0.7757 MB / 473.3 MB, free: 1 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008133/0.4847, allocations: 0.5138 MB / 473.9 MB, free: 488 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.543e-05/0.4848, allocations: 305.1 kB / 474.2 MB, free: 180 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001985/0.4868, allocations: 1.267 MB / 475.4 MB, free: 14.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002552/0.4893, allocations: 2.18 MB / 477.6 MB, free: 12.34 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004784/0.4941, allocations: 3.664 MB / 481.3 MB, free: 8.395 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.577e-05/0.4942, allocations: 8 kB / 481.3 MB, free: 8.387 MB / 382.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.007302/0.5015, allocations: 4.449 MB / 485.7 MB, free: 4.055 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.465e-05/0.5015, allocations: 20.06 kB / 485.7 MB, free: 4.035 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.242e-05/0.5016, allocations: 28 kB / 485.8 MB, free: 4.008 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001176/0.5028, allocations: 0.5208 MB / 486.3 MB, free: 3.469 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00256/0.5053, allocations: 0.6837 MB / 487 MB, free: 2.828 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008909/0.5143, allocations: 10.18 MB / 497.2 MB, free: 8.008 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002883/0.5172, allocations: 179.7 kB / 497.3 MB, free: 7.832 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002938/0.5175, allocations: 128 kB / 497.5 MB, free: 7.707 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.003007/0.5205, allocations: 1.515 MB / 499 MB, free: 6.227 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008005/0.5213, allocations: 320.2 kB / 499.3 MB, free: 5.91 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007066/0.5284, allocations: 3.88 MB / 0.4914 GB, free: 1.965 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-05/0.5284, allocations: 24 kB / 0.4914 GB, free: 1.941 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.893e-05/0.5285, allocations: 4 kB / 0.4914 GB, free: 1.938 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-05/0.5285, allocations: 15.91 kB / 0.4914 GB, free: 1.922 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01639/0.5449, allocations: 8.47 MB / 0.4997 GB, free: 9.371 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.134e-05/0.5449, allocations: 4 kB / 0.4997 GB, free: 9.367 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001649/0.5466, allocations: 382.4 kB / 0.5001 GB, free: 9.012 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001949/0.5485, allocations: 0.734 MB / 0.5008 GB, free: 8.262 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002047/0.5488, allocations: 63.91 kB / 0.5008 GB, free: 8.199 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01516/0.5639, allocations: 16.61 MB / 0.517 GB, free: 6.551 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.953e-06/0.564, allocations: 11.19 kB / 0.5171 GB, free: 6.543 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009663/0.5737, allocations: 5.544 MB / 0.5225 GB, free: 0.8828 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001995/0.5757, allocations: 0.657 MB / 0.5231 GB, free: 208 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008927/0.5766, allocations: 55.98 kB / 0.5232 GB, free: 152 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00203/0.5786, allocations: 135.9 kB / 0.5233 GB, free: 16 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004307/0.5791, allocations: 164.4 kB / 0.5235 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001751/0.5793, allocations: 67.97 kB / 0.5235 GB, free: 15.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003601/0.5829, allocations: 1.967 MB / 0.5254 GB, free: 13.83 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5829, allocations: 0 / 0.5254 GB, free: 13.83 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003748/0.5866, allocations: 0.9299 MB / 0.5263 GB, free: 12.9 MB / 446.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.0005738/0.5872, allocations: 253.6 kB / 0.5266 GB, free: 12.67 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006049/0.5933, allocations: 3.958 MB / 0.5305 GB, free: 8.703 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.5933, allocations: 4 kB / 0.5305 GB, free: 8.699 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003958/0.5973, allocations: 2.654 MB / 0.533 GB, free: 5.996 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003998/0.6013, allocations: 0.8484 MB / 0.5339 GB, free: 5.148 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1639/0.7651, allocations: 9.479 MB / 0.5431 GB, free: 157.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003877/0.7691, allocations: 3.292 MB / 0.5463 GB, free: 156.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002496/0.7716, allocations: 0.76 MB / 0.5471 GB, free: 156.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006335/0.7722, allocations: 225.3 kB / 0.5473 GB, free: 156.4 MB / 446.1 MB Notification: Performance of SimCode: time 9.42e-07/0.7722, allocations: 0 / 0.5473 GB, free: 156.4 MB / 446.1 MB Notification: Performance of Templates: time 0.06476/0.837, allocations: 44.35 MB / 0.5906 GB, free: 123.8 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 -s gbode -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/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","/var/lib/jenkins1/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