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.0009209/0.0009209, allocations: 75.77 kB / 22.46 MB, free: 2.094 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.0009715/0.0009715, allocations: 158.9 kB / 25.75 MB, free: 8.957 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.8944/0.8944, allocations: 158.6 MB / 187.5 MB, free: 2.914 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.996e-06/2.996e-06, allocations: 4 kB / 251.1 MB, free: 7.785 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.688e-05/2.988e-05, allocations: 2.312 kB / 251.1 MB, free: 7.781 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.02641/0.02644, allocations: 21.22 MB / 272.4 MB, free: 2.461 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01425/0.04069, allocations: 6.372 MB / 278.7 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00454/0.04523, allocations: 158.9 kB / 278.9 MB, free: 11.91 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003875/0.0491, allocations: 1.482 MB / 280.4 MB, free: 10.42 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004931/0.05404, allocations: 2.158 MB / 282.5 MB, free: 8.25 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00227/0.05631, allocations: 1.314 MB / 283.8 MB, free: 6.934 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006663/0.06297, allocations: 6.792 MB / 290.6 MB, free: 116 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003418/0.06639, allocations: 2.982 MB / 293.6 MB, free: 13.04 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004784/0.07117, allocations: 4.554 MB / 298.2 MB, free: 8.48 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003717/0.07489, allocations: 3.305 MB / 301.5 MB, free: 5.168 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001112/0.076, allocations: 0.8164 MB / 302.3 MB, free: 4.352 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001932/0.07793, allocations: 1.085 MB / 303.4 MB, free: 3.266 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001677/0.07961, allocations: 2.131 MB / 305.5 MB, free: 1.129 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002653/0.08226, allocations: 2.428 MB / 307.9 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006168/0.08843, allocations: 5.677 MB / 313.6 MB, free: 9 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.73e-06/0.08843, allocations: 0 / 313.6 MB, free: 9 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.08844, allocations: 0 / 313.6 MB, free: 9 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001256/0.08856, allocations: 0 / 313.6 MB, free: 9 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.01101/0.09958, allocations: 7.26 MB / 320.9 MB, free: 1.664 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.805e-05/0.09962, allocations: 15.98 kB / 320.9 MB, free: 1.648 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004015/0.1036, allocations: 1.687 MB / 322.6 MB, free: 15.95 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00478/0.1084, allocations: 3.261 MB / 325.8 MB, free: 12.62 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002417/0.1087, allocations: 407.1 kB / 326.2 MB, free: 12.23 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009056/0.1096, allocations: 0.5314 MB / 326.8 MB, free: 11.7 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006899/0.1165, allocations: 4.321 MB / 331.1 MB, free: 7.23 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001049/0.1166, allocations: 15.89 kB / 331.1 MB, free: 7.215 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003458/0.1169, allocations: 220 kB / 331.3 MB, free: 7 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001873/0.1171, allocations: 258.6 kB / 331.6 MB, free: 6.746 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00465/0.1218, allocations: 2.041 MB / 333.6 MB, free: 4.695 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02503/0.1468, allocations: 18.08 MB / 351.7 MB, free: 2.074 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1243/0.2711, allocations: 2.664 MB / 354.4 MB, free: 98.36 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002289/0.2734, allocations: 1.036 MB / 355.4 MB, free: 98.32 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006652/0.2801, allocations: 3.78 MB / 359.2 MB, free: 97.95 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.494e-05/0.2801, allocations: 61.86 kB / 359.2 MB, free: 97.9 MB / 330.7 MB Notification: Performance of pre-optimization done (n=220): time 4.799e-06/0.2801, allocations: 0 / 359.2 MB, free: 97.9 MB / 330.7 MB Notification: Performance of matching and sorting (n=240): time 0.01155/0.2917, allocations: 6.07 MB / 365.3 MB, free: 96.85 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.83e-05/0.2917, allocations: 76.62 kB / 365.4 MB, free: 96.79 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002902/0.2946, allocations: 2.444 MB / 367.8 MB, free: 95.86 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001142/0.2947, allocations: 69.2 kB / 367.9 MB, free: 95.79 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001197/0.2959, allocations: 2.696 MB / 370.6 MB, free: 93.71 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004938/0.2964, allocations: 0.8838 MB / 371.5 MB, free: 92.95 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000676/0.2971, allocations: 0.5843 MB / 372 MB, free: 92.4 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.001e-05/0.2971, allocations: 476.8 kB / 372.5 MB, free: 91.93 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009817/0.2981, allocations: 470.9 kB / 373 MB, free: 91.55 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001347/0.2995, allocations: 1.922 MB / 374.9 MB, free: 89.14 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002552/0.302, allocations: 2.645 MB / 377.5 MB, free: 85.92 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.277e-05/0.302, allocations: 8 kB / 377.5 MB, free: 85.91 MB / 330.7 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.004374/0.3064, allocations: 2.811 MB / 380.4 MB, free: 83.02 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.355e-05/0.3064, allocations: 16 kB / 380.4 MB, free: 83.01 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.237e-05/0.3065, allocations: 32 kB / 380.4 MB, free: 82.98 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008317/0.3073, allocations: 354.7 kB / 380.8 MB, free: 82.6 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001895/0.3092, allocations: 0.741 MB / 381.5 MB, free: 81.86 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004505/0.3137, allocations: 10.46 MB / 392 MB, free: 70.82 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001874/0.3156, allocations: 175.8 kB / 392.1 MB, free: 70.65 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001847/0.3158, allocations: 144 kB / 392.3 MB, free: 70.51 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.001158/0.3169, allocations: 367.6 kB / 392.6 MB, free: 70.14 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005116/0.3174, allocations: 409.8 kB / 393 MB, free: 69.74 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003487/0.3209, allocations: 2.181 MB / 395.2 MB, free: 67.51 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-05/0.3209, allocations: 24 kB / 395.2 MB, free: 67.49 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.39e-05/0.321, allocations: 8 kB / 395.2 MB, free: 67.48 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.716e-05/0.321, allocations: 11.95 kB / 395.2 MB, free: 67.47 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008853/0.3298, allocations: 5.941 MB / 401.2 MB, free: 61.42 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.023e-05/0.3298, allocations: 4 kB / 401.2 MB, free: 61.42 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00126/0.3311, allocations: 403.4 kB / 401.6 MB, free: 61.02 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001428/0.3325, allocations: 0.5403 MB / 402.1 MB, free: 60.46 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001488/0.3327, allocations: 67.97 kB / 402.2 MB, free: 60.39 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007727/0.3404, allocations: 17.2 MB / 419.4 MB, free: 42.25 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.441e-06/0.3404, allocations: 8 kB / 419.4 MB, free: 42.25 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004828/0.3452, allocations: 3.009 MB / 422.4 MB, free: 39.09 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001149/0.3464, allocations: 0.568 MB / 423 MB, free: 38.52 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003501/0.3467, allocations: 59.98 kB / 423 MB, free: 38.46 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009005/0.3476, allocations: 131.9 kB / 423.2 MB, free: 38.34 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003088/0.3479, allocations: 193.5 kB / 423.4 MB, free: 38.14 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.829e-05/0.348, allocations: 75.97 kB / 423.4 MB, free: 38.07 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001335/0.3494, allocations: 1.356 MB / 424.8 MB, free: 36.71 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3494, allocations: 0 / 424.8 MB, free: 36.71 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00243/0.3518, allocations: 0.9843 MB / 425.8 MB, free: 35.73 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.0004519/0.3522, allocations: 257.9 kB / 426 MB, free: 35.47 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003115/0.3554, allocations: 2.733 MB / 428.8 MB, free: 32.64 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.11e-06/0.3554, allocations: 4 kB / 428.8 MB, free: 32.64 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001898/0.3573, allocations: 2.477 MB / 431.2 MB, free: 30.02 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002335/0.3596, allocations: 0.8206 MB / 432.1 MB, free: 29.23 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01196/0.3716, allocations: 8.694 MB / 440.7 MB, free: 20.38 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001186/0.3727, allocations: 1.281 MB / 442 MB, free: 19.07 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.002194/0.3749, allocations: 0.6523 MB / 442.7 MB, free: 18.42 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006579/0.3756, allocations: 232.5 kB / 442.9 MB, free: 18.19 MB / 330.7 MB Notification: Performance of SimCode: time 2.555e-06/0.3756, allocations: 3.938 kB / 442.9 MB, free: 18.19 MB / 330.7 MB Notification: Performance of Templates: time 0.06841/0.444, allocations: 44.6 MB / 487.5 MB, free: 5.586 MB / 362.7 MB " [Timeout remaining time 660] 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.345047793118283]