Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_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.003274/0.003274, allocations: 75.75 kB / 21.97 MB, free: 2.613 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.001589/0.001589, allocations: 168.9 kB / 25.33 MB, free: 9.055 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.9818/0.9818, allocations: 158.6 MB / 187.2 MB, free: 2.934 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.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.[0-9,]+.|smpmE.idq_dr.[0-9,]+.|smpmE.idq_rr.[0-9,]+.|smpmE.idq_sr.[0-9,]+.|smpmM.is.[0-9,]+.|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im|smpmM.stator.strayReluctance.port_p.Phi.im|smpmM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.[0-9,]+.|smpmE.idq_dr.[0-9,]+.|smpmE.idq_rr.[0-9,]+.|smpmE.idq_sr.[0-9,]+.|smpmM.is.[0-9,]+.|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im|smpmM.stator.strayReluctance.port_p.Phi.im|smpmM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.114e-06/2.114e-06, allocations: 0 / 251.1 MB, free: 7.496 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.392e-05/3.604e-05, allocations: 6.25 kB / 251.1 MB, free: 7.488 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.01927/0.01931, allocations: 21.34 MB / 272.4 MB, free: 2.047 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01429/0.0336, allocations: 6.372 MB / 278.8 MB, free: 11.66 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00548/0.03908, allocations: 158.9 kB / 278.9 MB, free: 11.5 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005822/0.0449, allocations: 1.494 MB / 280.4 MB, free: 9.996 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009177/0.05407, allocations: 2.158 MB / 282.6 MB, free: 7.824 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003726/0.0578, allocations: 1.313 MB / 283.9 MB, free: 6.508 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01094/0.06874, allocations: 6.793 MB / 290.7 MB, free: 15.68 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004973/0.07371, allocations: 2.99 MB / 293.7 MB, free: 12.61 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009684/0.08339, allocations: 4.546 MB / 298.2 MB, free: 8.055 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007027/0.09042, allocations: 3.317 MB / 301.6 MB, free: 4.73 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003201/0.09362, allocations: 0.8164 MB / 302.4 MB, free: 3.914 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00498/0.0986, allocations: 1.085 MB / 303.5 MB, free: 2.828 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002898/0.1015, allocations: 2.123 MB / 305.6 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004995/0.1065, allocations: 2.432 MB / 308 MB, free: 14.26 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01036/0.1169, allocations: 5.669 MB / 313.7 MB, free: 8.574 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.1169, allocations: 4 kB / 313.7 MB, free: 8.57 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1169, allocations: 0 / 313.7 MB, free: 8.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0003349/0.1172, allocations: 0 / 313.7 MB, free: 8.57 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: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01297/0.1302, allocations: 7.264 MB / 321 MB, free: 1.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.952e-05/0.1302, allocations: 15.98 kB / 321 MB, free: 1.215 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003571/0.1338, allocations: 1.687 MB / 322.7 MB, free: 15.52 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005921/0.1397, allocations: 3.265 MB / 325.9 MB, free: 12.19 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002659/0.14, allocations: 407.1 kB / 326.3 MB, free: 11.79 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008489/0.1408, allocations: 0.5276 MB / 326.8 MB, free: 11.26 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0081/0.1489, allocations: 4.321 MB / 331.2 MB, free: 6.797 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000131/0.1491, allocations: 11.91 kB / 331.2 MB, free: 6.785 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003729/0.1494, allocations: 216 kB / 331.4 MB, free: 6.574 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002345/0.1497, allocations: 258.6 kB / 331.6 MB, free: 6.32 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005063/0.1547, allocations: 2.045 MB / 333.7 MB, free: 4.266 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02718/0.1819, allocations: 18.08 MB / 351.8 MB, free: 1.645 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1805/0.3624, allocations: 2.665 MB / 354.4 MB, free: 70.27 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002147/0.3646, allocations: 1.043 MB / 355.5 MB, free: 70.23 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006616/0.3712, allocations: 3.77 MB / 359.2 MB, free: 69.86 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.408e-05/0.3713, allocations: 65.89 kB / 359.3 MB, free: 69.81 MB / 330.7 MB Notification: Performance of pre-optimization done (n=220): time 5.41e-06/0.3713, allocations: 3.938 kB / 359.3 MB, free: 69.81 MB / 330.7 MB Notification: Performance of matching and sorting (n=240): time 0.0103/0.3816, allocations: 6.065 MB / 365.4 MB, free: 68.89 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.556e-05/0.3816, allocations: 74.59 kB / 365.5 MB, free: 68.82 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002353/0.3839, allocations: 2.452 MB / 367.9 MB, free: 68.46 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.442e-05/0.384, allocations: 70.77 kB / 368 MB, free: 68.43 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001058/0.3851, allocations: 2.687 MB / 370.7 MB, free: 67.46 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004216/0.3855, allocations: 0.8879 MB / 371.5 MB, free: 67 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005539/0.3861, allocations: 0.5763 MB / 372.1 MB, free: 66.93 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.642e-05/0.3862, allocations: 479.5 kB / 372.6 MB, free: 66.46 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007287/0.3869, allocations: 467.7 kB / 373 MB, free: 66.46 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001527/0.3884, allocations: 1.922 MB / 375 MB, free: 64.69 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002363/0.3908, allocations: 2.645 MB / 377.6 MB, free: 62.89 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.208e-05/0.3908, allocations: 11.44 kB / 377.6 MB, free: 62.89 MB / 330.7 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.00362/0.3944, allocations: 2.809 MB / 380.4 MB, free: 62.46 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.663e-05/0.3945, allocations: 22.09 kB / 380.5 MB, free: 62.46 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.581e-05/0.3945, allocations: 32.31 kB / 380.5 MB, free: 62.46 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006715/0.3952, allocations: 353 kB / 380.8 MB, free: 62.38 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001358/0.3965, allocations: 0.7453 MB / 381.6 MB, free: 62.37 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003863/0.4004, allocations: 10.45 MB / 392 MB, free: 52.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001415/0.4018, allocations: 183.2 kB / 392.2 MB, free: 52.27 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001465/0.4019, allocations: 139.9 kB / 392.3 MB, free: 52.13 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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 (380): * Single equations (assignments): 373 * 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,12,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.001433/0.4034, allocations: 366.5 kB / 392.7 MB, free: 51.82 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003952/0.4038, allocations: 417.8 kB / 393.1 MB, free: 51.41 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002631/0.4064, allocations: 2.178 MB / 395.3 MB, free: 49.59 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/0.4064, allocations: 20 kB / 395.3 MB, free: 49.57 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.4064, allocations: 12 kB / 395.3 MB, free: 49.55 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.356e-05/0.4064, allocations: 11.72 kB / 395.3 MB, free: 49.55 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007033/0.4135, allocations: 5.941 MB / 401.3 MB, free: 44.48 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.037e-06/0.4135, allocations: 4 kB / 401.3 MB, free: 44.48 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001178/0.4146, allocations: 404.6 kB / 401.7 MB, free: 44.17 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001353/0.416, allocations: 0.5404 MB / 402.2 MB, free: 43.7 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000135/0.4161, allocations: 63.97 kB / 402.3 MB, free: 43.64 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007995/0.4241, allocations: 17.2 MB / 419.5 MB, free: 25.58 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.4241, allocations: 4 kB / 419.5 MB, free: 25.57 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004738/0.4289, allocations: 3.012 MB / 422.5 MB, free: 22.45 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001252/0.4301, allocations: 0.5758 MB / 423.1 MB, free: 21.88 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002879/0.4304, allocations: 55.98 kB / 423.1 MB, free: 21.82 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001014/0.4314, allocations: 131.9 kB / 423.2 MB, free: 21.69 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004015/0.4318, allocations: 192.6 kB / 423.4 MB, free: 21.51 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001297/0.432, allocations: 67.98 kB / 423.5 MB, free: 21.44 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001839/0.4338, allocations: 1.368 MB / 424.9 MB, free: 20.07 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.4338, allocations: 0 / 424.9 MB, free: 20.07 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003465/0.4373, allocations: 0.9843 MB / 425.9 MB, free: 19.09 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],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 (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,12,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004991/0.4378, allocations: 254.8 kB / 426.1 MB, free: 18.86 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003728/0.4415, allocations: 2.735 MB / 428.8 MB, free: 16.13 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.702e-06/0.4415, allocations: 3.469 kB / 428.8 MB, free: 16.13 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002248/0.4437, allocations: 2.465 MB / 431.3 MB, free: 13.57 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002627/0.4464, allocations: 0.841 MB / 432.1 MB, free: 12.76 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01303/0.4594, allocations: 8.703 MB / 440.8 MB, free: 3.926 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001051/0.4605, allocations: 1.285 MB / 442.1 MB, free: 2.613 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001767/0.4622, allocations: 0.6523 MB / 442.8 MB, free: 1.957 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005361/0.4628, allocations: 220.5 kB / 443 MB, free: 1.742 MB / 330.7 MB Notification: Performance of SimCode: time 2.174e-06/0.4628, allocations: 0 / 443 MB, free: 1.742 MB / 330.7 MB Notification: Performance of Templates: time 0.06326/0.526, allocations: 44.59 MB / 487.6 MB, free: 5.242 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_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/SMPM_Inverter/SMPM_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.952199104242027]