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.00255/0.00255, allocations: 95.61 kB / 20.96 MB, free: 3.457 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.003004/0.003004, allocations: 161.3 kB / 24.27 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.559/1.559, 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.533e-06/1.533e-06, allocations: 0 / 272.3 MB, free: 1.832 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.467e-05/2.62e-05, allocations: 6.312 kB / 272.3 MB, free: 1.824 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01498/0.01501, allocations: 10.19 MB / 282.5 MB, free: 7.594 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007825/0.02284, allocations: 3.42 MB / 285.9 MB, free: 4.16 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001567/0.0244, allocations: 75.5 kB / 286 MB, free: 4.086 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002466/0.02687, allocations: 0.7567 MB / 286.8 MB, free: 3.324 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003514/0.03038, allocations: 0.9235 MB / 287.7 MB, free: 2.395 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001348/0.03173, allocations: 431.2 kB / 288.1 MB, free: 1.973 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.118/0.1497, allocations: 2.853 MB / 291 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001836/0.1516, allocations: 1.306 MB / 292.3 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002452/0.154, allocations: 1.914 MB / 294.2 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002116/0.1561, allocations: 1.474 MB / 295.7 MB, free: 15.58 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005155/0.1566, allocations: 333.5 kB / 296 MB, free: 15.58 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009165/0.1576, allocations: 446.2 kB / 296.4 MB, free: 15.58 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009246/0.1585, allocations: 0.9898 MB / 297.4 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001272/0.1598, allocations: 1.046 MB / 298.5 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003981/0.1637, allocations: 4.478 MB / 302.9 MB, free: 13.61 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1637, allocations: 3.375 kB / 302.9 MB, free: 13.61 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1637, allocations: 0.625 kB / 302.9 MB, free: 13.61 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.514e-05/0.1638, allocations: 0 / 302.9 MB, free: 13.61 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.005824/0.1696, allocations: 3.458 MB / 306.4 MB, free: 11.26 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.1697, allocations: 12 kB / 306.4 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001089/0.1708, allocations: 0.5075 MB / 306.9 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002569/0.1733, allocations: 1.537 MB / 308.5 MB, free: 10.03 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.952e-05/0.1734, allocations: 165.6 kB / 308.6 MB, free: 9.957 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002797/0.1737, allocations: 228.2 kB / 308.8 MB, free: 9.879 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003805/0.1775, allocations: 2.74 MB / 311.6 MB, free: 8.145 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.317e-05/0.1776, allocations: 10.56 kB / 311.6 MB, free: 8.141 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001862/0.1778, allocations: 84.38 kB / 311.7 MB, free: 8.074 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.731e-05/0.1779, allocations: 111.3 kB / 311.8 MB, free: 8.055 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002985/0.1808, allocations: 1.756 MB / 313.5 MB, free: 6.68 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01571/0.1965, allocations: 10.48 MB / 324 MB, free: 11.89 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002038/0.1986, allocations: 0.841 MB / 324.9 MB, free: 11.06 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001619/0.2002, allocations: 0.625 MB / 325.5 MB, free: 10.43 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00026/0.2005, allocations: 56.95 kB / 325.5 MB, free: 10.38 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.915e-05/0.2005, allocations: 46.39 kB / 325.6 MB, free: 10.32 MB / 282.7 MB Notification: Performance of pre-optimization done (n=105): time 3.627e-06/0.2005, allocations: 0 / 325.6 MB, free: 10.32 MB / 282.7 MB Notification: Performance of matching and sorting (n=122): time 0.01102/0.2115, allocations: 3.774 MB / 329.4 MB, free: 6.559 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.191e-05/0.2116, allocations: 68.34 kB / 329.4 MB, free: 6.48 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002846/0.2144, allocations: 1.717 MB / 331.1 MB, free: 4.734 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001124/0.2146, allocations: 50.45 kB / 331.2 MB, free: 4.68 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001254/0.2158, allocations: 1.299 MB / 332.5 MB, free: 3.375 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005568/0.2164, allocations: 484.8 kB / 333 MB, free: 2.906 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00058/0.2169, allocations: 330.6 kB / 333.3 MB, free: 2.578 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002389/0.2172, allocations: 484.8 kB / 333.8 MB, free: 2.102 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009027/0.2181, allocations: 379.8 kB / 334.1 MB, free: 1.73 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001529/0.2196, allocations: 1.02 MB / 335.1 MB, free: 476 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002607/0.2222, allocations: 1.547 MB / 336.7 MB, free: 14.72 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-05/0.2222, allocations: 4 kB / 336.7 MB, free: 14.72 MB / 298.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004102/0.2263, allocations: 1.708 MB / 338.4 MB, free: 13.08 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.537e-05/0.2264, allocations: 8 kB / 338.4 MB, free: 13.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.667e-05/0.2264, allocations: 16 kB / 338.4 MB, free: 13.06 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001035/0.2274, allocations: 287.6 kB / 338.7 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001315/0.2287, allocations: 346 kB / 339 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007542/0.2363, allocations: 6.932 MB / 346 MB, free: 5.203 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001352/0.2376, allocations: 103.8 kB / 346.1 MB, free: 5.102 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000141/0.2378, allocations: 63.98 kB / 346.1 MB, free: 5.039 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.001181/0.239, allocations: 0.5807 MB / 346.7 MB, free: 4.469 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004223/0.2394, allocations: 207 kB / 346.9 MB, free: 4.266 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003342/0.2427, allocations: 1.349 MB / 348.3 MB, free: 2.91 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.368e-05/0.2427, allocations: 12 kB / 348.3 MB, free: 2.898 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.774e-06/0.2427, allocations: 4 kB / 348.3 MB, free: 2.895 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.289e-05/0.2428, allocations: 3.984 kB / 348.3 MB, free: 2.891 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008427/0.2512, allocations: 3.913 MB / 352.2 MB, free: 14.9 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.025e-05/0.2512, allocations: 8.062 kB / 352.2 MB, free: 14.89 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001001/0.2522, allocations: 214.1 kB / 352.4 MB, free: 14.69 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001224/0.2534, allocations: 319.8 kB / 352.7 MB, free: 14.37 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.983e-05/0.2535, allocations: 39.98 kB / 352.8 MB, free: 14.33 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00924/0.2628, allocations: 8.679 MB / 361.5 MB, free: 5.215 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.705e-06/0.2628, allocations: 7.984 kB / 361.5 MB, free: 5.207 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004558/0.2673, allocations: 2.023 MB / 363.5 MB, free: 3.105 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009523/0.2683, allocations: 298.8 kB / 363.8 MB, free: 2.812 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002395/0.2685, allocations: 28 kB / 363.8 MB, free: 2.785 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009323/0.2695, allocations: 79.91 kB / 363.9 MB, free: 2.707 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002746/0.2697, allocations: 111.4 kB / 364 MB, free: 2.605 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001101/0.2698, allocations: 39.98 kB / 364 MB, free: 2.566 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001808/0.2716, allocations: 1 MB / 365 MB, free: 1.566 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2716, allocations: 0 / 365 MB, free: 1.566 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001926/0.2736, allocations: 491.9 kB / 365.5 MB, free: 1.086 MB / 314.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.0004375/0.274, allocations: 196 kB / 365.7 MB, free: 0.8945 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003717/0.2777, allocations: 1.802 MB / 367.5 MB, free: 15.09 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.2777, allocations: 0 / 367.5 MB, free: 15.09 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002524/0.2803, allocations: 1.407 MB / 368.9 MB, free: 13.63 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002009/0.2823, allocations: 437.3 kB / 369.3 MB, free: 13.23 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007962/0.2902, allocations: 4.204 MB / 373.5 MB, free: 8.926 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001704/0.2919, allocations: 1.231 MB / 374.8 MB, free: 7.656 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001126/0.2931, allocations: 305.7 kB / 375.1 MB, free: 7.352 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005132/0.2936, allocations: 124.5 kB / 375.2 MB, free: 7.227 MB / 330.7 MB Notification: Performance of SimCode: time 1.222e-06/0.2936, allocations: 0 / 375.2 MB, free: 7.227 MB / 330.7 MB Notification: Performance of Templates: time 0.05133/0.3449, allocations: 25.59 MB / 400.8 MB, free: 14.05 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 240] 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.680338285048492]