Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.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.001167/0.001167, allocations: 87.67 kB / 21.19 MB, free: 3.371 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.001226/0.001226, allocations: 156.5 kB / 24.55 MB, free: 16 kB / 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.919/0.919, allocations: 177 MB / 204.8 MB, free: 5.598 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_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 272.9 MB, free: 1.457 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.889e-05/2.048e-05, allocations: 2.312 kB / 272.9 MB, free: 1.453 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01189/0.01191, allocations: 10.84 MB / 283.8 MB, free: 6.559 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005567/0.01748, allocations: 3.61 MB / 287.4 MB, free: 2.934 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001028/0.01851, allocations: 91.44 kB / 287.5 MB, free: 2.844 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001371/0.01988, allocations: 0.8187 MB / 288.3 MB, free: 2.02 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001666/0.02154, allocations: 0.9469 MB / 289.2 MB, free: 1.066 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000617/0.02216, allocations: 475.1 kB / 289.7 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1139/0.1361, allocations: 3.039 MB / 292.7 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001864/0.1379, allocations: 1.516 MB / 294.3 MB, free: 15.56 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002493/0.1404, allocations: 2.086 MB / 296.3 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002126/0.1426, allocations: 1.648 MB / 298 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007023/0.1433, allocations: 372.5 kB / 298.4 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008269/0.1441, allocations: 487.2 kB / 298.8 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007731/0.1449, allocations: 1.134 MB / 300 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001239/0.1461, allocations: 1.149 MB / 301.1 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002345/0.1484, allocations: 2.698 MB / 303.8 MB, free: 13.08 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1484, allocations: 1.906 kB / 303.8 MB, free: 13.08 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1484, allocations: 0 / 303.8 MB, free: 13.08 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.592e-05/0.1485, allocations: 0.875 kB / 303.8 MB, free: 13.08 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.003968/0.1525, allocations: 3.587 MB / 307.4 MB, free: 11.03 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.1525, allocations: 9.969 kB / 307.4 MB, free: 11.03 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001062/0.1536, allocations: 0.5656 MB / 308 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002666/0.1563, allocations: 1.699 MB / 309.7 MB, free: 9.902 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001321/0.1564, allocations: 193.4 kB / 309.9 MB, free: 9.816 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00034/0.1567, allocations: 250.5 kB / 310.1 MB, free: 9.734 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003628/0.1604, allocations: 1.992 MB / 312.1 MB, free: 8.336 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.537e-05/0.1604, allocations: 11 kB / 312.1 MB, free: 8.328 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002193/0.1606, allocations: 103.9 kB / 312.2 MB, free: 8.227 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001195/0.1608, allocations: 124.9 kB / 312.3 MB, free: 8.102 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002604/0.1634, allocations: 0.9463 MB / 313.3 MB, free: 7.145 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009316/0.1727, allocations: 8.744 MB / 322 MB, free: 14.29 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007864/0.1735, allocations: 0.5482 MB / 322.6 MB, free: 13.74 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004805/0.1739, allocations: 331.6 kB / 322.9 MB, free: 13.41 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000163/0.1741, allocations: 56.97 kB / 323 MB, free: 13.35 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.84e-05/0.1741, allocations: 50.05 kB / 323 MB, free: 13.29 MB / 282.7 MB Notification: Performance of pre-optimization done (n=98): time 2.695e-06/0.1741, allocations: 0 / 323 MB, free: 13.29 MB / 282.7 MB Notification: Performance of matching and sorting (n=123): time 0.005631/0.1798, allocations: 3.744 MB / 326.7 MB, free: 9.543 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.379e-05/0.1798, allocations: 68.41 kB / 326.8 MB, free: 9.465 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001309/0.1811, allocations: 1.451 MB / 328.3 MB, free: 7.996 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.842e-05/0.1812, allocations: 45.7 kB / 328.3 MB, free: 7.945 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009341/0.1821, allocations: 1.411 MB / 329.7 MB, free: 6.531 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002356/0.1823, allocations: 448 kB / 330.2 MB, free: 6.098 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003059/0.1827, allocations: 301.1 kB / 330.5 MB, free: 5.793 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.165e-05/0.1827, allocations: 476.8 kB / 330.9 MB, free: 5.324 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004069/0.1831, allocations: 257 kB / 331.2 MB, free: 5.074 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007145/0.1839, allocations: 0.9734 MB / 332.1 MB, free: 3.793 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00122/0.1851, allocations: 1.376 MB / 333.5 MB, free: 2.176 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.136e-06/0.1851, allocations: 15.62 kB / 333.5 MB, free: 2.164 MB / 282.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.002202/0.1873, allocations: 1.436 MB / 335 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.58e-05/0.1873, allocations: 12 kB / 335 MB, free: 0.7969 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.866e-05/0.1873, allocations: 16.56 kB / 335 MB, free: 0.7812 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000396/0.1877, allocations: 138.3 kB / 335.1 MB, free: 0.6328 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001083/0.1888, allocations: 421.1 kB / 335.5 MB, free: 252 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002172/0.191, allocations: 3.622 MB / 339.2 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008313/0.1918, allocations: 131.7 kB / 339.3 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001045/0.1919, allocations: 72 kB / 339.4 MB, free: 12.2 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005071/0.1924, allocations: 257 kB / 339.6 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002885/0.1927, allocations: 238.4 kB / 339.8 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001707/0.1944, allocations: 1.038 MB / 340.9 MB, free: 10.67 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.627e-06/0.1944, allocations: 12 kB / 340.9 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.1944, allocations: 3.312 kB / 340.9 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.958e-06/0.1945, allocations: 3.984 kB / 340.9 MB, free: 10.65 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004891/0.1993, allocations: 3.12 MB / 344 MB, free: 7.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.1993, allocations: 0 / 344 MB, free: 7.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007783/0.2001, allocations: 266.3 kB / 344.3 MB, free: 7.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003212/0.2004, allocations: 118.3 kB / 344.4 MB, free: 7.102 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.605e-05/0.2005, allocations: 27.98 kB / 344.4 MB, free: 7.074 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001788/0.2023, allocations: 3.612 MB / 348 MB, free: 3.234 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.2023, allocations: 0 / 348 MB, free: 3.234 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002204/0.2045, allocations: 1.494 MB / 349.5 MB, free: 1.668 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005675/0.2051, allocations: 322.8 kB / 349.8 MB, free: 1.352 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001535/0.2052, allocations: 27.94 kB / 349.9 MB, free: 1.324 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000907/0.2061, allocations: 96 kB / 350 MB, free: 1.23 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000152/0.2063, allocations: 88.2 kB / 350.1 MB, free: 1.148 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.787e-05/0.2064, allocations: 32 kB / 350.1 MB, free: 1.117 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001053/0.2074, allocations: 0.8332 MB / 350.9 MB, free: 296 kB / 298.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2074, allocations: 0 / 350.9 MB, free: 296 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.001326/0.2087, allocations: 484 kB / 351.4 MB, free: 15.81 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 2 systems {(2,1,100.0%), (1,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.0003394/0.2091, allocations: 196.8 kB / 351.6 MB, free: 15.63 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001906/0.211, allocations: 1.338 MB / 352.9 MB, free: 14.31 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.211, allocations: 0 / 352.9 MB, free: 14.31 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001004/0.212, allocations: 0.8565 MB / 353.8 MB, free: 13.43 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001484/0.2135, allocations: 469.6 kB / 354.2 MB, free: 13 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006003/0.2195, allocations: 4.207 MB / 358.4 MB, free: 8.711 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005787/0.2201, allocations: 0.6537 MB / 359.1 MB, free: 8.027 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0008584/0.2209, allocations: 386.8 kB / 359.5 MB, free: 7.645 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003594/0.2213, allocations: 136.5 kB / 359.6 MB, free: 7.512 MB / 314.7 MB Notification: Performance of SimCode: time 7.02e-07/0.2213, allocations: 0 / 359.6 MB, free: 7.512 MB / 314.7 MB Notification: Performance of Templates: time 0.067/0.2883, allocations: 24.96 MB / 384.6 MB, free: 14.98 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.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.482749581336975]