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.001093/0.001093, allocations: 84.3 kB / 22.21 MB, free: 2.285 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.001156/0.001156, allocations: 166.8 kB / 25.6 MB, free: 8.906 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.8663/0.8663, allocations: 158.6 MB / 187.5 MB, free: 2.805 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.313e-06/1.313e-06, allocations: 0 / 251.5 MB, free: 7.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.637e-05/1.768e-05, allocations: 5.266 kB / 251.5 MB, free: 7.227 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.0192/0.01921, allocations: 20.65 MB / 272.1 MB, free: 2.48 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01123/0.03044, allocations: 6.345 MB / 278.5 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002649/0.03309, allocations: 154.9 kB / 278.6 MB, free: 11.96 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00276/0.03585, allocations: 1.494 MB / 280.1 MB, free: 10.46 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004395/0.04025, allocations: 2.158 MB / 282.3 MB, free: 8.289 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00222/0.04247, allocations: 1.313 MB / 283.6 MB, free: 6.973 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005826/0.04829, allocations: 6.785 MB / 290.4 MB, free: 160 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003118/0.05141, allocations: 2.978 MB / 293.4 MB, free: 13.09 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00538/0.05679, allocations: 4.897 MB / 298.3 MB, free: 8.184 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00292/0.05971, allocations: 3.211 MB / 301.5 MB, free: 4.965 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007055/0.06041, allocations: 0.8008 MB / 302.3 MB, free: 4.164 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001413/0.06183, allocations: 1.07 MB / 303.3 MB, free: 3.094 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001448/0.06328, allocations: 2.057 MB / 305.4 MB, free: 1.031 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001879/0.06515, allocations: 2.397 MB / 307.8 MB, free: 14.63 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00503/0.07018, allocations: 5.591 MB / 313.4 MB, free: 9.02 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.07019, allocations: 4 kB / 313.4 MB, free: 9.016 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.07019, allocations: 0 / 313.4 MB, free: 9.016 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.682e-05/0.07027, allocations: 0 / 313.4 MB, free: 9.016 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.007946/0.07821, allocations: 7.002 MB / 320.4 MB, free: 1.938 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.07825, allocations: 15.98 kB / 320.4 MB, free: 1.922 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002769/0.08102, allocations: 1.613 MB / 322 MB, free: 312 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003025/0.08405, allocations: 3.16 MB / 325.2 MB, free: 13.06 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001873/0.08424, allocations: 411.1 kB / 325.6 MB, free: 12.66 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004654/0.0847, allocations: 0.5237 MB / 326.1 MB, free: 12.13 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004262/0.08896, allocations: 3.972 MB / 330.1 MB, free: 8.02 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.33e-05/0.08905, allocations: 11.95 kB / 330.1 MB, free: 8.008 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000298/0.08934, allocations: 216 kB / 330.3 MB, free: 7.797 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001551/0.0895, allocations: 266.5 kB / 330.6 MB, free: 7.535 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002176/0.09167, allocations: 1.605 MB / 332.2 MB, free: 5.914 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01767/0.1093, allocations: 17.75 MB / 349.9 MB, free: 3.617 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002712/0.1121, allocations: 2.528 MB / 352.5 MB, free: 1.266 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009907/0.113, allocations: 0.9164 MB / 353.4 MB, free: 348 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.123/0.2361, allocations: 3.523 MB / 356.9 MB, free: 71.8 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.54e-05/0.2361, allocations: 63.23 kB / 357 MB, free: 71.76 MB / 330.7 MB Notification: Performance of pre-optimization done (n=219): time 3.697e-06/0.2361, allocations: 0 / 357 MB, free: 71.76 MB / 330.7 MB Notification: Performance of matching and sorting (n=239): time 0.007452/0.2436, allocations: 4.848 MB / 361.8 MB, free: 71.33 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.715e-05/0.2436, allocations: 74.44 kB / 361.9 MB, free: 71.26 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002399/0.246, allocations: 2.37 MB / 364.2 MB, free: 70.9 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001247/0.2461, allocations: 65.55 kB / 364.3 MB, free: 70.87 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001642/0.2478, allocations: 2.722 MB / 367 MB, free: 69.89 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006368/0.2484, allocations: 0.8806 MB / 367.9 MB, free: 69.44 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008566/0.2493, allocations: 0.591 MB / 368.5 MB, free: 69.38 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.149e-05/0.2493, allocations: 479.2 kB / 369 MB, free: 68.91 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007771/0.2501, allocations: 354.9 kB / 369.3 MB, free: 68.9 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001394/0.2515, allocations: 1.83 MB / 371.1 MB, free: 67.13 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002288/0.2538, allocations: 2.448 MB / 373.6 MB, free: 65.36 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.119e-05/0.2538, allocations: 9.188 kB / 373.6 MB, free: 65.36 MB / 330.7 MB Notification: Performance of matching and sorting (n=405) (initialization): time 0.003433/0.2573, allocations: 2.553 MB / 376.2 MB, free: 64.93 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.131e-05/0.2573, allocations: 18.28 kB / 376.2 MB, free: 64.93 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.323e-05/0.2573, allocations: 36.19 kB / 376.2 MB, free: 64.93 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006706/0.258, allocations: 344.7 kB / 376.5 MB, free: 64.84 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001337/0.2593, allocations: 0.6897 MB / 377.2 MB, free: 64.84 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007791/0.2671, allocations: 10.24 MB / 387.5 MB, free: 55.62 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002993/0.2701, allocations: 119.2 kB / 387.6 MB, free: 55.61 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000281/0.2704, allocations: 113.5 kB / 387.7 MB, free: 55.61 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.001588/0.272, allocations: 369.6 kB / 388.1 MB, free: 55.45 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007629/0.2728, allocations: 402.7 kB / 388.5 MB, free: 55.27 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00244/0.2752, allocations: 1.969 MB / 390.4 MB, free: 54.41 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.518e-05/0.2752, allocations: 28.03 kB / 390.5 MB, free: 54.38 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.437e-05/0.2752, allocations: 11.94 kB / 390.5 MB, free: 54.37 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.145e-05/0.2753, allocations: 14.95 kB / 390.5 MB, free: 54.37 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006833/0.2821, allocations: 5.674 MB / 396.2 MB, free: 50.8 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.693e-06/0.2821, allocations: 4 kB / 396.2 MB, free: 50.8 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007849/0.2829, allocations: 361.6 kB / 396.5 MB, free: 50.51 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009717/0.2839, allocations: 0.512 MB / 397 MB, free: 50.11 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001251/0.284, allocations: 63.59 kB / 397.1 MB, free: 50.05 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005775/0.2898, allocations: 16.79 MB / 413.9 MB, free: 32.99 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.2898, allocations: 8 kB / 413.9 MB, free: 32.98 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003509/0.2933, allocations: 2.712 MB / 416.6 MB, free: 30.21 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008578/0.2941, allocations: 0.5211 MB / 417.1 MB, free: 29.69 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002231/0.2943, allocations: 59.98 kB / 417.2 MB, free: 29.63 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006822/0.295, allocations: 79.97 kB / 417.3 MB, free: 29.55 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003364/0.2954, allocations: 197.4 kB / 417.4 MB, free: 29.37 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.705e-05/0.2954, allocations: 55.98 kB / 417.5 MB, free: 29.31 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001116/0.2966, allocations: 1.223 MB / 418.7 MB, free: 28.21 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2966, allocations: 0 / 418.7 MB, free: 28.21 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002599/0.2992, allocations: 0.9726 MB / 419.7 MB, free: 27.24 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 (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.0004462/0.2996, allocations: 257.3 kB / 419.9 MB, free: 27 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002395/0.302, allocations: 2.526 MB / 422.5 MB, free: 24.53 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.302, allocations: 0 / 422.5 MB, free: 24.53 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001458/0.3035, allocations: 2.339 MB / 424.8 MB, free: 22.12 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00187/0.3053, allocations: 0.8276 MB / 425.6 MB, free: 21.33 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0106/0.3159, allocations: 8.603 MB / 434.2 MB, free: 12.64 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00106/0.317, allocations: 1.285 MB / 435.5 MB, free: 11.32 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001431/0.3184, allocations: 464.3 kB / 436 MB, free: 10.87 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001208/0.3196, allocations: 0.8571 MB / 436.8 MB, free: 10.01 MB / 330.7 MB Notification: Performance of SimCode: time 1.833e-06/0.3196, allocations: 0 / 436.8 MB, free: 10.01 MB / 330.7 MB Notification: Performance of Templates: time 0.06349/0.3831, allocations: 46.81 MB / 483.6 MB, free: 11.3 MB / 378.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.3906822870485485]