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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 84.98 kB / 23 MB, free: 1.504 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001202/0.001202, allocations: 176.2 kB / 26.39 MB, free: 8.008 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9229/0.9229, allocations: 158.6 MB / 188.3 MB, free: 2.801 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.is.[0-9,]+.|smrE.idq_rr.[0-9,]+.|smrE.idq_sr.[0-9,]+.|smrM.is.[0-9,]+.|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..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=15000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.is.[0-9,]+.|smrE.idq_rr.[0-9,]+.|smrE.idq_sr.[0-9,]+.|smrM.is.[0-9,]+.|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 252.3 MB, free: 7.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.657e-05/2.813e-05, allocations: 6.25 kB / 252.3 MB, free: 7.227 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.01553/0.01556, allocations: 19.28 MB / 271.6 MB, free: 3.852 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01169/0.02725, allocations: 5.858 MB / 277.4 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006999/0.03425, allocations: 150.9 kB / 277.6 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01053/0.04478, allocations: 1.358 MB / 278.9 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01302/0.05779, allocations: 2.006 MB / 280.9 MB, free: 10.44 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009923/0.06772, allocations: 1.247 MB / 282.2 MB, free: 9.191 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01274/0.08046, allocations: 6.365 MB / 288.5 MB, free: 2.793 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004969/0.08543, allocations: 2.884 MB / 291.4 MB, free: 15.82 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007688/0.09312, allocations: 4.651 MB / 296.1 MB, free: 11.16 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004842/0.09796, allocations: 3.071 MB / 299.2 MB, free: 8.082 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002104/0.1001, allocations: 0.7656 MB / 299.9 MB, free: 7.316 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002876/0.1029, allocations: 1.035 MB / 301 MB, free: 6.281 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002031/0.105, allocations: 1.971 MB / 302.9 MB, free: 4.305 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004241/0.1092, allocations: 2.269 MB / 305.2 MB, free: 2.031 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007955/0.1172, allocations: 5.354 MB / 310.5 MB, free: 12.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1172, allocations: 0 / 310.5 MB, free: 12.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.1172, allocations: 4 kB / 310.6 MB, free: 12.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002917/0.1175, allocations: 0 / 310.6 MB, free: 12.66 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.01095/0.1284, allocations: 6.652 MB / 317.2 MB, free: 5.926 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.1284, allocations: 11.98 kB / 317.2 MB, free: 5.914 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003327/0.1318, allocations: 1.527 MB / 318.7 MB, free: 4.383 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004618/0.1364, allocations: 2.997 MB / 321.7 MB, free: 1.301 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002588/0.1366, allocations: 390.6 kB / 322.1 MB, free: 0.918 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008545/0.1375, allocations: 0.5041 MB / 322.6 MB, free: 424 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005811/0.1433, allocations: 3.778 MB / 326.4 MB, free: 12.5 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001025/0.1434, allocations: 23.86 kB / 326.4 MB, free: 12.48 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003154/0.1437, allocations: 208 kB / 326.6 MB, free: 12.27 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001672/0.1439, allocations: 238.2 kB / 326.9 MB, free: 12.04 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002918/0.1468, allocations: 1.534 MB / 328.4 MB, free: 10.48 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02299/0.1698, allocations: 16.49 MB / 344.9 MB, free: 9.5 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00296/0.1728, allocations: 2.537 MB / 347.4 MB, free: 7.156 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001111/0.1739, allocations: 0.8888 MB / 348.3 MB, free: 6.258 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005911/0.1798, allocations: 3.375 MB / 351.7 MB, free: 2.855 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.495e-05/0.1798, allocations: 59.33 kB / 351.7 MB, free: 2.785 MB / 330.7 MB Notification: Performance of pre-optimization done (n=204): time 3.827e-06/0.1798, allocations: 0 / 351.7 MB, free: 2.785 MB / 330.7 MB Notification: Performance of matching and sorting (n=221): time 0.146/0.3259, allocations: 4.522 MB / 356.3 MB, free: 74.19 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.907e-05/0.3259, allocations: 73.41 kB / 356.3 MB, free: 74.12 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002167/0.3281, allocations: 2.171 MB / 358.5 MB, free: 73.84 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000142/0.3282, allocations: 66.8 kB / 358.6 MB, free: 73.81 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001484/0.3297, allocations: 2.555 MB / 361.1 MB, free: 73.07 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006058/0.3303, allocations: 0.8205 MB / 362 MB, free: 72.65 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000643/0.3309, allocations: 0.5459 MB / 362.5 MB, free: 72.59 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.327e-05/0.331, allocations: 479.7 kB / 363 MB, free: 72.12 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005173/0.3315, allocations: 330.5 kB / 363.3 MB, free: 72.11 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008802/0.3324, allocations: 1.655 MB / 364.9 MB, free: 70.52 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001623/0.334, allocations: 2.234 MB / 367.2 MB, free: 68.97 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.21e-05/0.3341, allocations: 10.84 kB / 367.2 MB, free: 68.96 MB / 330.7 MB Notification: Performance of matching and sorting (n=372) (initialization): time 0.003045/0.3371, allocations: 2.361 MB / 369.6 MB, free: 68.62 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.859e-05/0.3371, allocations: 17.56 kB / 369.6 MB, free: 68.62 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.896e-05/0.3372, allocations: 27.91 kB / 369.6 MB, free: 68.62 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006699/0.3378, allocations: 343.4 kB / 369.9 MB, free: 68.53 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001293/0.3391, allocations: 0.6287 MB / 370.6 MB, free: 68.53 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003614/0.3427, allocations: 10.18 MB / 380.7 MB, free: 59.32 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001438/0.3442, allocations: 110.6 kB / 380.8 MB, free: 59.3 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001284/0.3443, allocations: 108.5 kB / 381 MB, free: 59.3 MB / 330.7 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 (347): * Single equations (assignments): 340 * 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.001203/0.3455, allocations: 341.7 kB / 381.3 MB, free: 59.14 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004462/0.346, allocations: 378.2 kB / 381.7 MB, free: 58.98 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002435/0.3484, allocations: 1.855 MB / 383.5 MB, free: 58.73 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.71e-05/0.3484, allocations: 25.8 kB / 383.5 MB, free: 58.73 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.42e-05/0.3484, allocations: 12.09 kB / 383.6 MB, free: 58.72 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.431e-05/0.3484, allocations: 11.06 kB / 383.6 MB, free: 58.72 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00642/0.3549, allocations: 5.322 MB / 388.9 MB, free: 57.98 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.984e-06/0.3549, allocations: 2.875 kB / 388.9 MB, free: 57.98 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008155/0.3557, allocations: 342.2 kB / 389.2 MB, free: 57.98 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009296/0.3566, allocations: 0.5006 MB / 389.7 MB, free: 57.77 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001068/0.3567, allocations: 69 kB / 389.8 MB, free: 57.75 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005669/0.3624, allocations: 16.69 MB / 406.5 MB, free: 41.65 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.3624, allocations: 7.469 kB / 406.5 MB, free: 41.65 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003127/0.3655, allocations: 2.546 MB / 409 MB, free: 39.35 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009334/0.3665, allocations: 487.5 kB / 409.5 MB, free: 38.93 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002476/0.3667, allocations: 59.7 kB / 409.6 MB, free: 38.88 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006726/0.3674, allocations: 75.17 kB / 409.6 MB, free: 38.81 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002832/0.3677, allocations: 179.8 kB / 409.8 MB, free: 38.73 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.988e-05/0.3677, allocations: 54.61 kB / 409.9 MB, free: 38.68 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001051/0.3688, allocations: 1.12 MB / 411 MB, free: 37.89 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3688, allocations: 6.406 kB / 411 MB, free: 37.88 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002566/0.3714, allocations: 0.9187 MB / 411.9 MB, free: 36.97 MB / 330.7 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 (184): * Single equations (assignments): 176 * 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%), (1,2,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.0004107/0.3718, allocations: 248.3 kB / 412.2 MB, free: 36.77 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002422/0.3742, allocations: 2.406 MB / 414.6 MB, free: 34.52 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/0.3742, allocations: 0 / 414.6 MB, free: 34.52 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001585/0.3758, allocations: 2.3 MB / 416.9 MB, free: 32.16 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002065/0.3778, allocations: 0.7162 MB / 417.6 MB, free: 31.47 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01111/0.389, allocations: 8.18 MB / 425.8 MB, free: 23.24 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001025/0.39, allocations: 1.242 MB / 427 MB, free: 21.97 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001409/0.3914, allocations: 416.2 kB / 427.4 MB, free: 21.56 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001182/0.3926, allocations: 0.7673 MB / 428.2 MB, free: 20.79 MB / 330.7 MB Notification: Performance of SimCode: time 2.705e-06/0.3926, allocations: 0 / 428.2 MB, free: 20.79 MB / 330.7 MB Notification: Performance of Templates: time 0.05906/0.4516, allocations: 43.36 MB / 471.5 MB, free: 9.535 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.3695984701626]