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.001348/0.001348, allocations: 84.62 kB / 20.68 MB, free: 1.023 MB / 14.72 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.001447/0.001447, allocations: 163.7 kB / 23.95 MB, free: 4.156 MB / 14.72 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.416/1.416, allocations: 177.1 MB / 204.3 MB, free: 9.172 MB / 190.1 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.463e-06/1.463e-06, allocations: 0 / 325.1 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.255e-05/2.402e-05, allocations: 3.469 kB / 325.1 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01178/0.0118, allocations: 8.579 MB / 333.7 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007392/0.01919, allocations: 3 MB / 336.7 MB, free: 8.309 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00217/0.02136, allocations: 71.72 kB / 336.7 MB, free: 8.277 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002077/0.02344, allocations: 0.6722 MB / 337.4 MB, free: 7.773 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002817/0.02626, allocations: 0.837 MB / 338.2 MB, free: 7.066 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001069/0.02732, allocations: 406 kB / 338.6 MB, free: 6.719 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004571/0.0319, allocations: 2.643 MB / 341.3 MB, free: 4.883 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00195/0.03385, allocations: 1.26 MB / 342.5 MB, free: 3.562 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003179/0.03702, allocations: 1.774 MB / 344.3 MB, free: 1.781 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002369/0.03939, allocations: 1.301 MB / 345.6 MB, free: 488 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005511/0.03994, allocations: 316 kB / 345.9 MB, free: 172 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001014/0.04096, allocations: 427.7 kB / 346.3 MB, free: 15.75 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001072/0.04203, allocations: 0.9348 MB / 347.3 MB, free: 14.81 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001434/0.04346, allocations: 0.9705 MB / 348.2 MB, free: 13.84 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005447/0.04891, allocations: 4.222 MB / 352.5 MB, free: 9.605 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.04892, allocations: 0 / 352.5 MB, free: 9.605 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.04892, allocations: 0 / 352.5 MB, free: 9.605 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.792e-05/0.04902, allocations: 3.938 kB / 352.5 MB, free: 9.602 MB / 318.1 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.006749/0.05577, allocations: 2.877 MB / 355.4 MB, free: 6.676 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.32e-05/0.05582, allocations: 8.031 kB / 355.4 MB, free: 6.668 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009146/0.05673, allocations: 311.2 kB / 355.7 MB, free: 6.363 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003012/0.05975, allocations: 1.478 MB / 357.1 MB, free: 4.84 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001695/0.05992, allocations: 160.5 kB / 357.3 MB, free: 4.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003766/0.06029, allocations: 216.3 kB / 357.5 MB, free: 4.469 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005415/0.06571, allocations: 2.9 MB / 360.4 MB, free: 1.457 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.701e-05/0.06576, allocations: 7.938 kB / 360.4 MB, free: 1.449 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002293/0.06599, allocations: 84 kB / 360.5 MB, free: 1.367 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001446/0.06614, allocations: 108.2 kB / 360.6 MB, free: 1.258 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004528/0.07067, allocations: 2.339 MB / 362.9 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01376/0.08443, allocations: 7.378 MB / 370.3 MB, free: 7.293 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002432/0.08686, allocations: 1.179 MB / 371.5 MB, free: 6.102 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001881/0.08874, allocations: 0.8977 MB / 372.4 MB, free: 5.203 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00024/0.08898, allocations: 56.89 kB / 372.5 MB, free: 5.148 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.32e-05/0.08903, allocations: 47.5 kB / 372.5 MB, free: 5.09 MB / 334.1 MB Notification: Performance of pre-optimization done (n=101): time 3.016e-06/0.08903, allocations: 4 kB / 372.5 MB, free: 5.086 MB / 334.1 MB Notification: Performance of matching and sorting (n=116): time 0.01473/0.1038, allocations: 5.707 MB / 378.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.401e-05/0.1039, allocations: 68.34 kB / 378.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002119/0.106, allocations: 1.305 MB / 379.6 MB, free: 13.96 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001073/0.1061, allocations: 49.64 kB / 379.6 MB, free: 13.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009639/0.107, allocations: 1.07 MB / 380.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004145/0.1075, allocations: 420.4 kB / 381.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004571/0.1079, allocations: 263.5 kB / 381.4 MB, free: 12.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002054/0.1081, allocations: 361.9 kB / 381.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001264/0.1094, allocations: 0.6871 MB / 382.4 MB, free: 11.1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001571/0.111, allocations: 1.066 MB / 383.5 MB, free: 9.871 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00297/0.1139, allocations: 1.868 MB / 385.3 MB, free: 7.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.007e-06/0.1139, allocations: 4 kB / 385.3 MB, free: 7.836 MB / 350.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.00458/0.1185, allocations: 2.323 MB / 387.7 MB, free: 5.492 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.851e-05/0.1185, allocations: 12 kB / 387.7 MB, free: 5.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.409e-05/0.1186, allocations: 15.94 kB / 387.7 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001119/0.1197, allocations: 417.6 kB / 388.1 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001311/0.121, allocations: 327.5 kB / 388.4 MB, free: 4.727 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007854/0.1289, allocations: 6.616 MB / 395 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001306/0.1302, allocations: 103.9 kB / 395.1 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001201/0.1303, allocations: 63.98 kB / 395.2 MB, free: 13.64 MB / 366.1 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.001307/0.1316, allocations: 0.685 MB / 395.9 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003013/0.1319, allocations: 155 kB / 396 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004055/0.1359, allocations: 2.027 MB / 398.1 MB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.604e-05/0.136, allocations: 19.98 kB / 398.1 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.188e-06/0.136, allocations: 11.88 kB / 398.1 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.214e-05/0.136, allocations: 3.984 kB / 398.1 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007676/0.1437, allocations: 3.942 MB / 402 MB, free: 6.668 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/0.1437, allocations: 4 kB / 402 MB, free: 6.664 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000978/0.1446, allocations: 215.7 kB / 402.3 MB, free: 6.453 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001223/0.1459, allocations: 450.6 kB / 402.7 MB, free: 6.004 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.243e-05/0.146, allocations: 31.98 kB / 402.7 MB, free: 5.973 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008988/0.1549, allocations: 8.054 MB / 410.8 MB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.154e-06/0.155, allocations: 7.938 kB / 410.8 MB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005549/0.1605, allocations: 3.009 MB / 413.8 MB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008216/0.1613, allocations: 298.8 kB / 414.1 MB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000218/0.1615, allocations: 32 kB / 414.1 MB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008982/0.1624, allocations: 87.89 kB / 414.2 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002658/0.1627, allocations: 96.7 kB / 414.3 MB, free: 9.926 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.091e-05/0.1628, allocations: 39.98 kB / 414.3 MB, free: 9.887 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001427/0.1642, allocations: 0.8759 MB / 415.2 MB, free: 9.008 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1642, allocations: 0 / 415.2 MB, free: 9.008 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001638/0.1659, allocations: 459.9 kB / 415.7 MB, free: 8.559 MB / 382.1 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.0004255/0.1663, allocations: 205.8 kB / 415.9 MB, free: 8.352 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003897/0.1702, allocations: 2.083 MB / 418 MB, free: 6.23 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.1702, allocations: 4.062 kB / 418 MB, free: 6.227 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002499/0.1727, allocations: 1.387 MB / 419.3 MB, free: 4.785 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001821/0.1745, allocations: 358.8 kB / 419.7 MB, free: 4.438 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007515/0.182, allocations: 4.32 MB / 424 MB, free: 44 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001563/0.1836, allocations: 1.227 MB / 425.2 MB, free: 14.77 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00114/0.1847, allocations: 352.5 kB / 425.6 MB, free: 14.42 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003551/0.1851, allocations: 112.5 kB / 425.7 MB, free: 14.31 MB / 398.1 MB Notification: Performance of SimCode: time 1.193e-06/0.1851, allocations: 0 / 425.7 MB, free: 14.31 MB / 398.1 MB Notification: Performance of Templates: time 0.04448/0.2296, allocations: 23.24 MB / 448.9 MB, free: 7.359 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 480] 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.411244656890631]