Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.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.001857/0.001857, allocations: 84.34 kB / 20.95 MB, free: 3.449 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.002309/0.002309, allocations: 165.3 kB / 24.27 MB, free: 144 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.573/1.573, allocations: 177.1 MB / 204.6 MB, free: 5.613 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.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 272.3 MB, free: 1.824 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.672e-05/2.832e-05, allocations: 2.312 kB / 272.3 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01373/0.01376, allocations: 9.158 MB / 281.5 MB, free: 8.621 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007621/0.02138, allocations: 3.299 MB / 284.8 MB, free: 5.309 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001207/0.02259, allocations: 71.5 kB / 284.9 MB, free: 5.238 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001992/0.02458, allocations: 0.7723 MB / 285.6 MB, free: 4.461 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002453/0.02703, allocations: 0.9157 MB / 286.5 MB, free: 3.539 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009653/0.028, allocations: 435.2 kB / 287 MB, free: 3.113 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003609/0.03161, allocations: 2.861 MB / 289.8 MB, free: 252 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1302/0.1618, allocations: 1.3 MB / 291.1 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002718/0.1645, allocations: 1.887 MB / 293 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001964/0.1664, allocations: 1.366 MB / 294.4 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004771/0.1669, allocations: 334.7 kB / 294.7 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000845/0.1678, allocations: 447.7 kB / 295.1 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008515/0.1686, allocations: 0.978 MB / 296.1 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00116/0.1698, allocations: 1.029 MB / 297.2 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003782/0.1736, allocations: 4.452 MB / 301.6 MB, free: 14.48 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.1736, allocations: 1.812 kB / 301.6 MB, free: 14.48 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.1736, allocations: 0.75 kB / 301.6 MB, free: 14.48 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.58e-05/0.1736, allocations: 0 / 301.6 MB, free: 14.48 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.005316/0.1789, allocations: 3.041 MB / 304.7 MB, free: 12.4 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.179, allocations: 9.562 kB / 304.7 MB, free: 12.4 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001091/0.1801, allocations: 0.5048 MB / 305.2 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002284/0.1824, allocations: 1.621 MB / 306.8 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.005e-05/0.1824, allocations: 166.5 kB / 306.9 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002758/0.1827, allocations: 226.4 kB / 307.2 MB, free: 11.01 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003903/0.1866, allocations: 3.023 MB / 310.2 MB, free: 9.148 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.568e-05/0.1867, allocations: 10.38 kB / 310.2 MB, free: 9.145 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001981/0.1869, allocations: 89.19 kB / 310.3 MB, free: 9.078 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001055/0.187, allocations: 112.9 kB / 310.4 MB, free: 9.059 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003297/0.1903, allocations: 2.425 MB / 312.8 MB, free: 7.406 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01007/0.2003, allocations: 7.983 MB / 320.8 MB, free: 15.39 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002428/0.2028, allocations: 1.174 MB / 322 MB, free: 14.22 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002051/0.2048, allocations: 0.9306 MB / 322.9 MB, free: 13.29 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002588/0.2051, allocations: 60.95 kB / 323 MB, free: 13.23 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.072e-05/0.2051, allocations: 43.56 kB / 323 MB, free: 13.18 MB / 282.7 MB Notification: Performance of pre-optimization done (n=105): time 2.845e-06/0.2051, allocations: 0 / 323 MB, free: 13.18 MB / 282.7 MB Notification: Performance of matching and sorting (n=122): time 0.01606/0.2212, allocations: 6.073 MB / 329.1 MB, free: 7.121 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.497e-05/0.2213, allocations: 68.34 kB / 329.2 MB, free: 7.043 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00249/0.2238, allocations: 1.429 MB / 330.6 MB, free: 5.602 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001303/0.2239, allocations: 45.7 kB / 330.6 MB, free: 5.551 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001177/0.2251, allocations: 1.14 MB / 331.8 MB, free: 4.406 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004931/0.2256, allocations: 448.3 kB / 332.2 MB, free: 3.973 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005327/0.2261, allocations: 271.5 kB / 332.5 MB, free: 3.699 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.2263, allocations: 301.1 kB / 332.8 MB, free: 3.402 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001397/0.2277, allocations: 0.7105 MB / 333.5 MB, free: 2.691 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001814/0.2295, allocations: 1.144 MB / 334.6 MB, free: 1.371 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003308/0.2328, allocations: 1.967 MB / 336.6 MB, free: 15.27 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.045e-05/0.2328, allocations: 4 kB / 336.6 MB, free: 15.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.005196/0.238, allocations: 2.5 MB / 339.1 MB, free: 12.84 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.77e-05/0.238, allocations: 19.59 kB / 339.1 MB, free: 12.83 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.544e-05/0.238, allocations: 12 kB / 339.1 MB, free: 12.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001312/0.2393, allocations: 459.2 kB / 339.6 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001402/0.2407, allocations: 352 kB / 339.9 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008707/0.2495, allocations: 6.72 MB / 346.6 MB, free: 5.062 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001686/0.2511, allocations: 111.9 kB / 346.7 MB, free: 4.953 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001789/0.2513, allocations: 60 kB / 346.8 MB, free: 4.895 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (169): * Single equations (assignments): 165 * 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,12,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.001527/0.2528, allocations: 0.7174 MB / 347.5 MB, free: 4.188 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005004/0.2533, allocations: 206.9 kB / 347.7 MB, free: 3.984 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004449/0.2578, allocations: 2.103 MB / 349.8 MB, free: 1.871 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-05/0.2578, allocations: 15.98 kB / 349.8 MB, free: 1.855 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-05/0.2578, allocations: 8 kB / 349.8 MB, free: 1.848 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.214e-05/0.2578, allocations: 3.984 kB / 349.9 MB, free: 1.844 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009185/0.267, allocations: 4.13 MB / 354 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.113e-05/0.267, allocations: 4 kB / 354 MB, free: 13.67 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00105/0.2681, allocations: 218.8 kB / 354.2 MB, free: 13.47 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00147/0.2696, allocations: 484.8 kB / 354.7 MB, free: 12.99 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001254/0.2697, allocations: 43.97 kB / 354.7 MB, free: 12.95 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01021/0.2799, allocations: 8.147 MB / 362.9 MB, free: 4.441 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.865e-06/0.2799, allocations: 8 kB / 362.9 MB, free: 4.434 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006395/0.2863, allocations: 3.165 MB / 366 MB, free: 1.215 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001098/0.2874, allocations: 314.8 kB / 366.3 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002729/0.2877, allocations: 28 kB / 366.4 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009633/0.2886, allocations: 79.91 kB / 366.4 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003091/0.2889, allocations: 108 kB / 366.6 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001012/0.289, allocations: 35.98 kB / 366.6 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001869/0.2909, allocations: 0.9535 MB / 367.5 MB, free: 15.71 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2909, allocations: 0 / 367.5 MB, free: 15.71 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002016/0.2929, allocations: 491.9 kB / 368 MB, free: 15.23 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],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 (107): * Single equations (assignments): 103 * 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,12,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.0004435/0.2934, allocations: 200.2 kB / 368.2 MB, free: 15.04 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0043/0.2977, allocations: 2.15 MB / 370.4 MB, free: 12.89 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.975e-06/0.2977, allocations: 4 kB / 370.4 MB, free: 12.89 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002775/0.3005, allocations: 1.425 MB / 371.8 MB, free: 11.45 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002394/0.3028, allocations: 443.2 kB / 372.2 MB, free: 11.04 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009102/0.312, allocations: 4.633 MB / 376.9 MB, free: 6.324 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001778/0.3137, allocations: 1.298 MB / 378.2 MB, free: 4.984 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001335/0.3151, allocations: 377.7 kB / 378.5 MB, free: 4.609 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004039/0.3155, allocations: 112.5 kB / 378.6 MB, free: 4.5 MB / 330.7 MB Notification: Performance of SimCode: time 1.392e-06/0.3155, allocations: 0 / 378.6 MB, free: 4.5 MB / 330.7 MB Notification: Performance of Templates: time 0.05076/0.3662, allocations: 25.58 MB / 404.2 MB, free: 11.34 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_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.792462948011234]