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.0009502/0.0009502, allocations: 84.39 kB / 22.21 MB, free: 2.289 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.0009748/0.0009748, allocations: 171 kB / 25.61 MB, free: 8.91 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.9798/0.9798, allocations: 158.6 MB / 187.5 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 2.184e-06/2.184e-06, allocations: 0 / 251.5 MB, free: 7.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.903e-05/3.122e-05, allocations: 6.25 kB / 251.5 MB, free: 7.219 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.01742/0.01745, allocations: 19.27 MB / 270.8 MB, free: 3.855 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01274/0.03019, allocations: 5.862 MB / 276.6 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004107/0.0343, allocations: 154.9 kB / 276.8 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004958/0.03925, allocations: 1.354 MB / 278.1 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00795/0.0472, allocations: 2.01 MB / 280.1 MB, free: 10.44 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003402/0.05061, allocations: 1.243 MB / 281.4 MB, free: 9.191 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008412/0.05902, allocations: 6.369 MB / 287.8 MB, free: 2.793 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004812/0.06383, allocations: 2.884 MB / 290.6 MB, free: 15.82 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008401/0.07223, allocations: 4.655 MB / 295.3 MB, free: 11.16 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005846/0.07808, allocations: 3.071 MB / 298.4 MB, free: 8.078 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002301/0.08038, allocations: 0.7656 MB / 299.1 MB, free: 7.312 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003283/0.08366, allocations: 1.042 MB / 300.2 MB, free: 6.27 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001918/0.08558, allocations: 1.963 MB / 302.1 MB, free: 4.301 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00394/0.08952, allocations: 2.272 MB / 304.4 MB, free: 2.023 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006401/0.09592, allocations: 5.354 MB / 309.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.09592, allocations: 4 kB / 309.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.51e-07/0.09592, allocations: 0 / 309.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001297/0.09605, allocations: 0 / 309.8 MB, free: 12.65 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.008722/0.1048, allocations: 6.648 MB / 316.4 MB, free: 5.922 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.1048, allocations: 15.98 kB / 316.4 MB, free: 5.906 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00309/0.1079, allocations: 1.523 MB / 318 MB, free: 4.379 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004169/0.1121, allocations: 3.001 MB / 321 MB, free: 1.293 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00022/0.1123, allocations: 386.6 kB / 321.3 MB, free: 0.9141 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005691/0.1129, allocations: 0.512 MB / 321.9 MB, free: 412 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005736/0.1186, allocations: 3.778 MB / 325.6 MB, free: 12.49 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.058e-05/0.1187, allocations: 15.88 kB / 325.6 MB, free: 12.47 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003181/0.119, allocations: 208 kB / 325.8 MB, free: 12.27 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001725/0.1192, allocations: 242.2 kB / 326.1 MB, free: 12.03 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002669/0.1219, allocations: 1.527 MB / 327.6 MB, free: 10.48 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02239/0.1442, allocations: 16.49 MB / 344.1 MB, free: 9.5 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003152/0.1474, allocations: 2.538 MB / 346.6 MB, free: 7.152 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001286/0.1487, allocations: 0.8888 MB / 347.5 MB, free: 6.254 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005885/0.1546, allocations: 3.383 MB / 350.9 MB, free: 2.844 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.325e-05/0.1546, allocations: 63.27 kB / 351 MB, free: 2.77 MB / 330.7 MB Notification: Performance of pre-optimization done (n=204): time 3.497e-06/0.1546, allocations: 4 kB / 351 MB, free: 2.766 MB / 330.7 MB Notification: Performance of matching and sorting (n=221): time 0.1563/0.3109, allocations: 4.514 MB / 355.5 MB, free: 74.2 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.498e-05/0.3109, allocations: 73.72 kB / 355.6 MB, free: 74.13 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002354/0.3133, allocations: 2.18 MB / 357.7 MB, free: 73.85 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001486/0.3134, allocations: 62.3 kB / 357.8 MB, free: 73.82 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001203/0.3146, allocations: 2.552 MB / 360.4 MB, free: 73.08 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004664/0.3151, allocations: 0.821 MB / 361.2 MB, free: 72.66 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005381/0.3156, allocations: 0.545 MB / 361.7 MB, free: 72.59 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.579e-05/0.3157, allocations: 479.9 kB / 362.2 MB, free: 72.12 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004687/0.3161, allocations: 328.2 kB / 362.5 MB, free: 72.12 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009069/0.3171, allocations: 1.66 MB / 364.2 MB, free: 70.53 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001641/0.3187, allocations: 2.239 MB / 366.4 MB, free: 68.98 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.147e-05/0.3187, allocations: 10.53 kB / 366.4 MB, free: 68.97 MB / 330.7 MB Notification: Performance of matching and sorting (n=372) (initialization): time 0.00307/0.3218, allocations: 2.366 MB / 368.8 MB, free: 68.64 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.96e-05/0.3218, allocations: 17.75 kB / 368.8 MB, free: 68.64 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.062e-05/0.3218, allocations: 27.28 kB / 368.8 MB, free: 68.64 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006308/0.3225, allocations: 336.2 kB / 369.2 MB, free: 68.55 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001291/0.3238, allocations: 0.6343 MB / 369.8 MB, free: 68.55 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003866/0.3276, allocations: 10.18 MB / 380 MB, free: 59.32 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001736/0.3294, allocations: 115.8 kB / 380.1 MB, free: 59.31 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001841/0.3296, allocations: 107.8 kB / 380.2 MB, free: 59.31 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.001472/0.331, allocations: 341 kB / 380.5 MB, free: 59.14 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005339/0.3316, allocations: 372.7 kB / 380.9 MB, free: 58.98 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002399/0.334, allocations: 1.861 MB / 382.7 MB, free: 58.73 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.507e-05/0.334, allocations: 24.8 kB / 382.8 MB, free: 58.73 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.464e-05/0.334, allocations: 11.38 kB / 382.8 MB, free: 58.73 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.564e-05/0.334, allocations: 9.984 kB / 382.8 MB, free: 58.73 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007721/0.3417, allocations: 5.329 MB / 388.1 MB, free: 57.99 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.285e-06/0.3417, allocations: 3.688 kB / 388.1 MB, free: 57.99 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008071/0.3425, allocations: 337 kB / 388.5 MB, free: 57.99 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009424/0.3435, allocations: 0.512 MB / 389 MB, free: 57.74 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.166e-05/0.3436, allocations: 58.61 kB / 389 MB, free: 57.72 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006086/0.3497, allocations: 16.7 MB / 405.7 MB, free: 41.64 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.3497, allocations: 7.375 kB / 405.7 MB, free: 41.64 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0033/0.353, allocations: 2.54 MB / 408.3 MB, free: 39.35 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009263/0.3539, allocations: 488.6 kB / 408.8 MB, free: 38.93 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002078/0.3541, allocations: 54.02 kB / 408.8 MB, free: 38.89 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006404/0.3547, allocations: 83.03 kB / 408.9 MB, free: 38.82 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002864/0.355, allocations: 179.8 kB / 409.1 MB, free: 38.73 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.318e-05/0.3551, allocations: 59.55 kB / 409.1 MB, free: 38.68 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001088/0.3562, allocations: 1.125 MB / 410.2 MB, free: 37.88 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3562, allocations: 0 / 410.2 MB, free: 37.88 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002715/0.3589, allocations: 0.9152 MB / 411.2 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.0004238/0.3593, allocations: 244.7 kB / 411.4 MB, free: 36.77 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002556/0.3619, allocations: 2.409 MB / 413.8 MB, free: 34.54 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/0.3619, allocations: 4 kB / 413.8 MB, free: 34.53 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00157/0.3635, allocations: 2.295 MB / 416.1 MB, free: 32.18 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002131/0.3656, allocations: 0.7131 MB / 416.8 MB, free: 31.49 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01101/0.3766, allocations: 8.177 MB / 425 MB, free: 23.26 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009971/0.3776, allocations: 1.242 MB / 426.2 MB, free: 21.99 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0014/0.379, allocations: 413.7 kB / 426.6 MB, free: 21.58 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001091/0.3801, allocations: 0.7712 MB / 427.4 MB, free: 20.8 MB / 330.7 MB Notification: Performance of SimCode: time 1.953e-06/0.3801, allocations: 0 / 427.4 MB, free: 20.8 MB / 330.7 MB Notification: Performance of Templates: time 0.05846/0.4386, allocations: 42.55 MB / 470 MB, free: 10.37 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.2591101080179214]