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.001004/0.001004, allocations: 79.73 kB / 21.97 MB, free: 2.594 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.001024/0.001024, allocations: 177.6 kB / 25.33 MB, free: 9.441 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.7996/0.7996, allocations: 158.6 MB / 187.2 MB, free: 2.5 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 1.252e-06/1.252e-06, allocations: 0 / 251.1 MB, free: 3.551 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.672e-05/1.797e-05, allocations: 5.406 kB / 251.1 MB, free: 3.547 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.0162/0.01621, allocations: 21.35 MB / 272.4 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0099/0.02611, allocations: 6.391 MB / 278.8 MB, free: 7.695 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001794/0.02791, allocations: 151 kB / 279 MB, free: 7.547 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002275/0.03018, allocations: 1.49 MB / 280.5 MB, free: 6.047 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003391/0.03357, allocations: 2.158 MB / 282.6 MB, free: 3.875 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001673/0.03525, allocations: 1.325 MB / 283.9 MB, free: 2.547 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004649/0.0399, allocations: 6.791 MB / 290.7 MB, free: 11.73 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002548/0.04244, allocations: 2.982 MB / 293.7 MB, free: 8.656 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004071/0.04651, allocations: 4.889 MB / 298.6 MB, free: 3.758 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002547/0.04906, allocations: 3.188 MB / 301.8 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.1219/0.171, allocations: 0.8036 MB / 302.6 MB, free: 25.72 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003582/0.1745, allocations: 1.068 MB / 303.7 MB, free: 25.72 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001778/0.1763, allocations: 2.057 MB / 305.7 MB, free: 25.72 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004701/0.181, allocations: 2.397 MB / 308.1 MB, free: 25.72 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008557/0.1896, allocations: 5.605 MB / 313.7 MB, free: 25.23 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.1896, allocations: 0 / 313.7 MB, free: 25.23 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1896, allocations: 4.375 kB / 313.7 MB, free: 25.23 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002373/0.1898, allocations: 0 / 313.7 MB, free: 25.23 MB / 282.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.01399/0.2038, allocations: 7.175 MB / 320.9 MB, free: 22.65 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.2039, allocations: 14.23 kB / 320.9 MB, free: 22.65 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004134/0.208, allocations: 1.685 MB / 322.6 MB, free: 22.2 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005011/0.213, allocations: 3.318 MB / 325.9 MB, free: 20.45 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002052/0.2132, allocations: 413 kB / 326.3 MB, free: 20.27 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006334/0.2138, allocations: 0.5314 MB / 326.8 MB, free: 20.09 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007876/0.2217, allocations: 4.301 MB / 331.1 MB, free: 18.43 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001146/0.2218, allocations: 14.22 kB / 331.2 MB, free: 18.42 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004024/0.2222, allocations: 219.8 kB / 331.4 MB, free: 18.25 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001996/0.2224, allocations: 266 kB / 331.6 MB, free: 18.23 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004521/0.227, allocations: 2.027 MB / 333.7 MB, free: 17.91 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02148/0.2484, allocations: 17.91 MB / 351.6 MB, free: 1.777 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003889/0.2523, allocations: 2.728 MB / 354.3 MB, free: 15.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001538/0.2539, allocations: 1.029 MB / 355.3 MB, free: 14.22 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008891/0.2627, allocations: 3.676 MB / 359 MB, free: 10.61 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.035e-05/0.2628, allocations: 59.39 kB / 359.1 MB, free: 10.54 MB / 298.7 MB Notification: Performance of pre-optimization done (n=219): time 3.356e-06/0.2628, allocations: 4 kB / 359.1 MB, free: 10.53 MB / 298.7 MB Notification: Performance of matching and sorting (n=239): time 0.009732/0.2725, allocations: 6.027 MB / 365.1 MB, free: 4.555 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.865e-05/0.2726, allocations: 77.41 kB / 365.2 MB, free: 4.469 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002513/0.2751, allocations: 2.425 MB / 367.6 MB, free: 2.012 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001054/0.2752, allocations: 73.7 kB / 367.7 MB, free: 1.934 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001259/0.2764, allocations: 2.692 MB / 370.4 MB, free: 15.23 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005099/0.277, allocations: 0.8788 MB / 371.2 MB, free: 14.36 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000567/0.2775, allocations: 0.5766 MB / 371.8 MB, free: 13.77 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.2777, allocations: 480.7 kB / 372.3 MB, free: 13.3 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000714/0.2784, allocations: 462 kB / 372.7 MB, free: 12.84 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001447/0.2798, allocations: 1.919 MB / 374.7 MB, free: 10.32 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002436/0.2823, allocations: 2.63 MB / 377.3 MB, free: 7.184 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.165e-05/0.2823, allocations: 12 kB / 377.3 MB, free: 7.172 MB / 314.7 MB Notification: Performance of matching and sorting (n=405) (initialization): time 0.003389/0.2857, allocations: 2.805 MB / 380.1 MB, free: 4.504 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.574e-05/0.2857, allocations: 19.98 kB / 380.1 MB, free: 4.484 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.639e-05/0.2857, allocations: 36.03 kB / 380.2 MB, free: 4.449 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006493/0.2864, allocations: 359.2 kB / 380.5 MB, free: 4.078 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001433/0.2878, allocations: 0.7224 MB / 381.2 MB, free: 3.402 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005319/0.2931, allocations: 10.46 MB / 391.7 MB, free: 8.395 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001219/0.2943, allocations: 167.8 kB / 391.9 MB, free: 8.23 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001492/0.2945, allocations: 143.5 kB / 392 MB, free: 8.094 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 (379): * Single equations (assignments): 372 * 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.001341/0.2958, allocations: 364.9 kB / 392.3 MB, free: 7.773 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000439/0.2963, allocations: 405.9 kB / 392.7 MB, free: 7.375 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002969/0.2992, allocations: 2.156 MB / 394.9 MB, free: 5.195 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-05/0.2993, allocations: 27.41 kB / 394.9 MB, free: 5.172 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/0.2993, allocations: 8 kB / 394.9 MB, free: 5.164 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.799e-05/0.2993, allocations: 15.95 kB / 394.9 MB, free: 5.148 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007664/0.307, allocations: 5.86 MB / 400.8 MB, free: 15.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/0.307, allocations: 4.062 kB / 400.8 MB, free: 15.24 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008875/0.3078, allocations: 389.8 kB / 401.2 MB, free: 14.88 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001013/0.3089, allocations: 0.5244 MB / 401.7 MB, free: 14.33 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001112/0.309, allocations: 63.97 kB / 401.8 MB, free: 14.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00808/0.3171, allocations: 17.12 MB / 418.9 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.3171, allocations: 7.031 kB / 418.9 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004169/0.3212, allocations: 3.001 MB / 421.9 MB, free: 9.152 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009059/0.3221, allocations: 0.5485 MB / 422.5 MB, free: 8.602 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002568/0.3224, allocations: 63.48 kB / 422.5 MB, free: 8.543 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007195/0.3231, allocations: 115.9 kB / 422.6 MB, free: 8.43 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002883/0.3234, allocations: 193 kB / 422.8 MB, free: 8.242 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.418e-05/0.3235, allocations: 67.98 kB / 422.9 MB, free: 8.176 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001657/0.3251, allocations: 1.344 MB / 424.2 MB, free: 6.836 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.3251, allocations: 0 / 424.2 MB, free: 6.836 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002645/0.3278, allocations: 0.9726 MB / 425.2 MB, free: 5.863 MB / 362.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 (200): * Single equations (assignments): 192 * 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%), (1,2,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.0004414/0.3282, allocations: 252.5 kB / 425.4 MB, free: 5.629 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003372/0.3316, allocations: 2.716 MB / 428.2 MB, free: 2.926 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.3316, allocations: 4 kB / 428.2 MB, free: 2.922 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001953/0.3336, allocations: 2.438 MB / 430.6 MB, free: 400 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002069/0.3356, allocations: 0.8199 MB / 431.4 MB, free: 15.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01061/0.3462, allocations: 8.686 MB / 440.1 MB, free: 6.762 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001029/0.3473, allocations: 1.285 MB / 441.4 MB, free: 5.449 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001657/0.3489, allocations: 0.6522 MB / 442 MB, free: 4.793 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004226/0.3494, allocations: 220.5 kB / 442.3 MB, free: 4.578 MB / 378.7 MB Notification: Performance of SimCode: time 1.513e-06/0.3494, allocations: 0 / 442.3 MB, free: 4.578 MB / 378.7 MB Notification: Performance of Templates: time 0.1648/0.5141, allocations: 45.4 MB / 487.7 MB, free: 90 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.103952641133219]