Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008839/0.0008839, allocations: 84.86 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009567/0.0009567, allocations: 165.8 kB / 24.91 MB, free: 8.758 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9234/0.9234, allocations: 177 MB / 205.2 MB, free: 5.457 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.[0-9,]+.|smpm.idq_dr.[0-9,]+.|smpm.idq_rr.[0-9,]+.|smpm.idq_sr.[0-9,]+.|vfController.x",fileNamePrefix="Modelica_trunk_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.[0-9,]+.|smpm.idq_dr.[0-9,]+.|smpm.idq_rr.[0-9,]+.|smpm.idq_sr.[0-9,]+.|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 273.4 MB, free: 1.223 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.742e-05/2.907e-05, allocations: 2.312 kB / 273.4 MB, free: 1.219 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01167/0.0117, allocations: 10.02 MB / 283.4 MB, free: 7.156 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007242/0.01894, allocations: 3.531 MB / 286.9 MB, free: 3.609 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001785/0.02073, allocations: 79.5 kB / 287 MB, free: 3.531 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002213/0.02294, allocations: 0.7761 MB / 287.8 MB, free: 2.75 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003319/0.02626, allocations: 0.9235 MB / 288.7 MB, free: 1.82 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009892/0.02725, allocations: 439.2 kB / 289.2 MB, free: 1.391 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.102/0.1292, allocations: 2.852 MB / 292 MB, free: 16.28 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00133/0.1306, allocations: 1.347 MB / 293.4 MB, free: 16.04 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002057/0.1326, allocations: 2.139 MB / 295.5 MB, free: 15.9 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001386/0.134, allocations: 1.385 MB / 296.9 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003758/0.1344, allocations: 326.5 kB / 297.2 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005756/0.135, allocations: 426.8 kB / 297.6 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005701/0.1355, allocations: 0.9392 MB / 298.5 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008258/0.1364, allocations: 1.013 MB / 299.6 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001875/0.1382, allocations: 2.38 MB / 301.9 MB, free: 14.3 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.1382, allocations: 0 / 301.9 MB, free: 14.3 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1382, allocations: 0 / 301.9 MB, free: 14.3 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.202e-05/0.1383, allocations: 1.812 kB / 301.9 MB, free: 14.3 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.002639/0.1409, allocations: 2.821 MB / 304.8 MB, free: 12.75 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.159e-05/0.1409, allocations: 11.8 kB / 304.8 MB, free: 12.75 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005852/0.1415, allocations: 414.1 kB / 305.2 MB, free: 12.68 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001134/0.1427, allocations: 1.162 MB / 306.3 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.328e-05/0.1427, allocations: 164.5 kB / 306.5 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001847/0.1429, allocations: 228.6 kB / 306.7 MB, free: 11.92 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00141/0.1443, allocations: 1.692 MB / 308.4 MB, free: 11.32 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.807e-05/0.1444, allocations: 6.578 kB / 308.4 MB, free: 11.32 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001167/0.1445, allocations: 87.92 kB / 308.5 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.819e-05/0.1445, allocations: 116.5 kB / 308.6 MB, free: 11.24 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008248/0.1454, allocations: 0.6566 MB / 309.3 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004713/0.1501, allocations: 5.873 MB / 315.2 MB, free: 5.926 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006349/0.1507, allocations: 0.6525 MB / 315.8 MB, free: 5.301 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004647/0.1512, allocations: 436.8 kB / 316.2 MB, free: 4.891 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001385/0.1513, allocations: 60.97 kB / 316.3 MB, free: 4.832 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.889e-05/0.1513, allocations: 39.56 kB / 316.3 MB, free: 4.781 MB / 266.7 MB Notification: Performance of pre-optimization done (n=105): time 2.695e-06/0.1513, allocations: 0 / 316.3 MB, free: 4.781 MB / 266.7 MB Notification: Performance of matching and sorting (n=122): time 0.003517/0.1549, allocations: 2.571 MB / 318.9 MB, free: 2.242 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.756e-05/0.1549, allocations: 64.41 kB / 319 MB, free: 2.168 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005517/0.1554, allocations: 1.074 MB / 320 MB, free: 1.281 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.93e-05/0.1555, allocations: 41.7 kB / 320.1 MB, free: 1.234 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002145/0.1557, allocations: 0.9453 MB / 321 MB, free: 352 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001696/0.1559, allocations: 444.8 kB / 321.5 MB, free: 15.93 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002493/0.1561, allocations: 260.5 kB / 321.7 MB, free: 15.7 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.679e-05/0.1562, allocations: 305 kB / 322 MB, free: 15.4 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000243/0.1564, allocations: 170.8 kB / 322.2 MB, free: 15.23 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003883/0.1568, allocations: 0.5779 MB / 322.8 MB, free: 14.51 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007593/0.1576, allocations: 0.9231 MB / 323.7 MB, free: 13.49 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.814e-06/0.1576, allocations: 4 kB / 323.7 MB, free: 13.48 MB / 282.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.001234/0.1588, allocations: 1.045 MB / 324.7 MB, free: 12.52 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.1588, allocations: 12 kB / 324.7 MB, free: 12.5 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.1588, allocations: 12 kB / 324.8 MB, free: 12.49 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004779/0.1593, allocations: 248.8 kB / 325 MB, free: 12.25 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006021/0.1599, allocations: 312.6 kB / 325.3 MB, free: 11.96 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002996/0.1629, allocations: 4.746 MB / 330 MB, free: 7.023 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000464/0.1634, allocations: 55.94 kB / 330.1 MB, free: 6.969 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.18e-05/0.1634, allocations: 48 kB / 330.1 MB, free: 6.922 MB / 282.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.0003847/0.1638, allocations: 210.3 kB / 330.4 MB, free: 6.73 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001808/0.164, allocations: 139.9 kB / 330.5 MB, free: 6.594 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001045/0.1651, allocations: 0.8722 MB / 331.4 MB, free: 5.711 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.1651, allocations: 12 kB / 331.4 MB, free: 5.699 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.1651, allocations: 7.469 kB / 331.4 MB, free: 5.695 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.987e-06/0.1651, allocations: 11.97 kB / 331.4 MB, free: 5.684 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002734/0.1678, allocations: 2.511 MB / 333.9 MB, free: 3.418 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.1678, allocations: 4 kB / 333.9 MB, free: 3.414 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004257/0.1682, allocations: 186.4 kB / 334.1 MB, free: 3.242 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005594/0.1688, allocations: 307.6 kB / 334.4 MB, free: 2.93 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.699e-05/0.1689, allocations: 39.92 kB / 334.4 MB, free: 2.891 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003257/0.1721, allocations: 5.937 MB / 340.4 MB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.1721, allocations: 7.469 kB / 340.4 MB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001347/0.1735, allocations: 1.295 MB / 341.7 MB, free: 11.33 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003179/0.1738, allocations: 222.1 kB / 341.9 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000115/0.1739, allocations: 28 kB / 341.9 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003466/0.1742, allocations: 47.97 kB / 342 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001447/0.1744, allocations: 108.3 kB / 342.1 MB, free: 10.94 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.267e-05/0.1744, allocations: 28 kB / 342.1 MB, free: 10.91 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000409/0.1748, allocations: 0.5242 MB / 342.6 MB, free: 10.45 MB / 298.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1748, allocations: 0 / 342.6 MB, free: 10.45 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001342/0.1762, allocations: 480 kB / 343.1 MB, free: 9.977 MB / 298.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%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002641/0.1764, allocations: 179.1 kB / 343.3 MB, free: 9.809 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001185/0.1776, allocations: 1.185 MB / 344.4 MB, free: 8.656 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.098e-05/0.1777, allocations: 20.5 kB / 344.5 MB, free: 8.637 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009086/0.1786, allocations: 0.9381 MB / 345.4 MB, free: 7.691 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009809/0.1795, allocations: 431 kB / 345.8 MB, free: 7.293 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004429/0.184, allocations: 3.828 MB / 349.7 MB, free: 3.418 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004332/0.1844, allocations: 0.5263 MB / 350.2 MB, free: 2.855 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000892/0.1853, allocations: 217.9 kB / 350.4 MB, free: 2.637 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008255/0.1861, allocations: 419.1 kB / 350.8 MB, free: 2.219 MB / 298.7 MB Notification: Performance of SimCode: time 1.002e-06/0.1861, allocations: 0 / 350.8 MB, free: 2.219 MB / 298.7 MB Notification: Performance of Templates: time 0.03803/0.2242, allocations: 26.18 MB / 377 MB, free: 8.504 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.309083132073283]