Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.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.002633/0.002633, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.003241/0.003241, allocations: 165.3 kB / 24.28 MB, free: 156 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.564/1.564, allocations: 177.1 MB / 204.6 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.182e-06/1.182e-06, allocations: 0 / 272.3 MB, free: 1.84 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.681e-05/2.799e-05, allocations: 6.312 kB / 272.3 MB, free: 1.832 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01391/0.01394, allocations: 9.52 MB / 281.9 MB, free: 8.273 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006732/0.02067, allocations: 3.1 MB / 285 MB, free: 5.164 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001123/0.0218, allocations: 67.56 kB / 285 MB, free: 5.098 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001762/0.02356, allocations: 0.6752 MB / 285.7 MB, free: 4.418 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002288/0.02585, allocations: 0.842 MB / 286.5 MB, free: 3.57 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008892/0.02674, allocations: 395.3 kB / 286.9 MB, free: 3.184 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003155/0.02989, allocations: 2.653 MB / 289.6 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1112/0.1411, allocations: 1.258 MB / 290.8 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002578/0.1437, allocations: 1.794 MB / 292.6 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002203/0.1459, allocations: 1.403 MB / 294 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006121/0.1465, allocations: 318.7 kB / 294.3 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009115/0.1474, allocations: 423.3 kB / 294.8 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008699/0.1483, allocations: 0.9466 MB / 295.7 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00123/0.1495, allocations: 0.9854 MB / 296.7 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004301/0.1538, allocations: 4.252 MB / 300.9 MB, free: 15 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.1538, allocations: 0 / 300.9 MB, free: 15 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1538, allocations: 0 / 300.9 MB, free: 15 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.253e-05/0.1539, allocations: 0 / 300.9 MB, free: 15 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.005761/0.1596, allocations: 3.277 MB / 304.2 MB, free: 12.76 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.1597, allocations: 10.28 kB / 304.2 MB, free: 12.76 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00103/0.1607, allocations: 487 kB / 304.7 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002566/0.1633, allocations: 1.448 MB / 306.2 MB, free: 11.61 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.917e-05/0.1634, allocations: 161.4 kB / 306.3 MB, free: 11.53 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002705/0.1636, allocations: 215.5 kB / 306.5 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003862/0.1675, allocations: 2.64 MB / 309.2 MB, free: 9.785 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.137e-05/0.1676, allocations: 11.98 kB / 309.2 MB, free: 9.777 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001807/0.1677, allocations: 80.19 kB / 309.2 MB, free: 9.715 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.089e-05/0.1678, allocations: 105.5 kB / 309.4 MB, free: 9.695 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002755/0.1706, allocations: 1.701 MB / 311.1 MB, free: 8.844 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01188/0.1825, allocations: 9.755 MB / 320.8 MB, free: 15.3 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001937/0.1844, allocations: 0.828 MB / 321.6 MB, free: 14.46 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00151/0.1859, allocations: 0.6201 MB / 322.3 MB, free: 13.85 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002422/0.1861, allocations: 60.44 kB / 322.3 MB, free: 13.8 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.903e-05/0.1862, allocations: 50.39 kB / 322.4 MB, free: 13.73 MB / 282.7 MB Notification: Performance of pre-optimization done (n=101): time 2.775e-06/0.1862, allocations: 0 / 322.4 MB, free: 13.73 MB / 282.7 MB Notification: Performance of matching and sorting (n=116): time 0.01003/0.1962, allocations: 3.601 MB / 326 MB, free: 10.12 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.895e-05/0.1963, allocations: 64.41 kB / 326 MB, free: 10.04 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002438/0.1987, allocations: 1.572 MB / 327.6 MB, free: 8.465 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001024/0.1988, allocations: 45.7 kB / 327.6 MB, free: 8.414 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001248/0.2001, allocations: 1.212 MB / 328.9 MB, free: 7.195 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004782/0.2005, allocations: 466.1 kB / 329.3 MB, free: 6.746 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005572/0.2011, allocations: 309.2 kB / 329.6 MB, free: 6.438 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000398/0.2015, allocations: 0.5902 MB / 330.2 MB, free: 5.84 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008693/0.2024, allocations: 355.8 kB / 330.6 MB, free: 5.492 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00145/0.2038, allocations: 0.94 MB / 331.5 MB, free: 4.336 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002804/0.2066, allocations: 1.431 MB / 332.9 MB, free: 2.738 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.247e-06/0.2066, allocations: 7.938 kB / 332.9 MB, free: 2.73 MB / 282.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003706/0.2103, allocations: 1.615 MB / 334.5 MB, free: 1.172 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.787e-05/0.2104, allocations: 12 kB / 334.6 MB, free: 1.16 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.171e-05/0.2104, allocations: 15.66 kB / 334.6 MB, free: 1.148 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001044/0.2114, allocations: 276.9 kB / 334.8 MB, free: 0.8633 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001309/0.2127, allocations: 322.6 kB / 335.2 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008115/0.2209, allocations: 6.875 MB / 342 MB, free: 9.367 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001427/0.2223, allocations: 99.73 kB / 342.1 MB, free: 9.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001397/0.2224, allocations: 59.98 kB / 342.2 MB, free: 9.211 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (157): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 3 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001236/0.2237, allocations: 0.5634 MB / 342.8 MB, free: 8.656 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004039/0.2241, allocations: 187.1 kB / 342.9 MB, free: 8.473 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003232/0.2273, allocations: 1.278 MB / 344.2 MB, free: 7.184 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.275e-05/0.2273, allocations: 12 kB / 344.2 MB, free: 7.172 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/0.2273, allocations: 4 kB / 344.2 MB, free: 7.168 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.106e-05/0.2273, allocations: 11.91 kB / 344.2 MB, free: 7.156 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008365/0.2357, allocations: 3.74 MB / 348 MB, free: 3.359 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.2357, allocations: 4 kB / 348 MB, free: 3.355 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009493/0.2367, allocations: 206.5 kB / 348.2 MB, free: 3.164 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001222/0.2379, allocations: 326.6 kB / 348.5 MB, free: 2.832 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.487e-05/0.238, allocations: 27.98 kB / 348.5 MB, free: 2.805 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009541/0.2475, allocations: 8.639 MB / 357.2 MB, free: 9.723 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.2475, allocations: 8 kB / 357.2 MB, free: 9.715 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004354/0.2519, allocations: 1.926 MB / 359.1 MB, free: 7.723 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009291/0.2528, allocations: 276.8 kB / 359.4 MB, free: 7.453 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002151/0.253, allocations: 32 kB / 359.4 MB, free: 7.422 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008589/0.2539, allocations: 79.91 kB / 359.5 MB, free: 7.344 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002528/0.2541, allocations: 96.33 kB / 359.6 MB, free: 7.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.418e-05/0.2542, allocations: 39.98 kB / 359.6 MB, free: 7.211 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001572/0.2558, allocations: 0.9187 MB / 360.5 MB, free: 6.289 MB / 314.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2558, allocations: 0 / 360.5 MB, free: 6.289 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00199/0.2578, allocations: 459.9 kB / 361 MB, free: 5.84 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004094/0.2582, allocations: 200.8 kB / 361.2 MB, free: 5.645 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003549/0.2617, allocations: 1.741 MB / 362.9 MB, free: 3.898 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/0.2618, allocations: 0 / 362.9 MB, free: 3.898 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00245/0.2642, allocations: 1.371 MB / 364.3 MB, free: 2.477 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001868/0.2661, allocations: 379.8 kB / 364.7 MB, free: 2.121 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007587/0.2737, allocations: 3.984 MB / 368.6 MB, free: 14.05 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001562/0.2752, allocations: 1.153 MB / 369.8 MB, free: 12.86 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0009563/0.2762, allocations: 288.5 kB / 370.1 MB, free: 12.57 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003573/0.2765, allocations: 108.5 kB / 370.2 MB, free: 12.46 MB / 330.7 MB Notification: Performance of SimCode: time 1.383e-06/0.2765, allocations: 0 / 370.2 MB, free: 12.46 MB / 330.7 MB Notification: Performance of Templates: time 0.04508/0.3216, allocations: 23.38 MB / 393.6 MB, free: 5.473 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.792507119011134]