Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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.0009485/0.0009485, allocations: 82.59 kB / 21.43 MB, free: 3.07 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.0009845/0.0009845, allocations: 165.7 kB / 24.82 MB, free: 9.312 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 1.02/1.02, allocations: 177 MB / 205.1 MB, free: 5.484 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_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.[0-9,]+.|smpm.idq_sr.[0-9,]+.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.[0-9,]+.|smpm.idq_sr.[0-9,]+.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 273.4 MB, free: 1.211 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.793e-05/1.933e-05, allocations: 5.266 kB / 273.4 MB, free: 1.207 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.008489/0.008508, allocations: 11.04 MB / 284.4 MB, free: 6.105 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004201/0.01271, allocations: 3.525 MB / 287.9 MB, free: 2.566 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005453/0.01325, allocations: 91.31 kB / 288 MB, free: 2.477 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001126/0.01438, allocations: 0.8344 MB / 288.9 MB, free: 1.637 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001216/0.0156, allocations: 1.028 MB / 289.9 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004472/0.01604, allocations: 435.3 kB / 290.3 MB, free: 180 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1166/0.1326, allocations: 3.888 MB / 294.2 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001707/0.1344, allocations: 1.552 MB / 295.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002762/0.1371, allocations: 2.562 MB / 298.3 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001951/0.1391, allocations: 1.879 MB / 300.2 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005711/0.1396, allocations: 413.1 kB / 300.6 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007441/0.1404, allocations: 0.4955 MB / 301.1 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007023/0.1411, allocations: 1.233 MB / 302.3 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001184/0.1423, allocations: 1.344 MB / 303.7 MB, free: 13.01 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002091/0.1444, allocations: 3.154 MB / 306.8 MB, free: 11.74 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1444, allocations: 0 / 306.8 MB, free: 11.74 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1444, allocations: 0 / 306.8 MB, free: 11.74 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.871e-05/0.1444, allocations: 1.875 kB / 306.8 MB, free: 11.74 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: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.003315/0.1477, allocations: 3.904 MB / 310.7 MB, free: 9.59 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.1478, allocations: 12.55 kB / 310.7 MB, free: 9.586 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006844/0.1484, allocations: 0.642 MB / 311.4 MB, free: 8.973 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00146/0.1499, allocations: 1.798 MB / 313.2 MB, free: 7.27 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.057e-05/0.15, allocations: 210.1 kB / 313.4 MB, free: 7.062 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002155/0.1502, allocations: 291.5 kB / 313.7 MB, free: 6.781 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001895/0.1521, allocations: 2.34 MB / 316 MB, free: 4.387 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.894e-05/0.1521, allocations: 14.91 kB / 316 MB, free: 4.375 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001488/0.1523, allocations: 123.9 kB / 316.1 MB, free: 4.254 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.499e-05/0.1523, allocations: 117.5 kB / 316.3 MB, free: 4.137 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001044/0.1534, allocations: 0.8343 MB / 317.1 MB, free: 3.293 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008403/0.1618, allocations: 9.744 MB / 326.8 MB, free: 9.91 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009513/0.1627, allocations: 0.999 MB / 327.8 MB, free: 8.98 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007012/0.1634, allocations: 0.6105 MB / 328.4 MB, free: 8.387 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001262/0.1636, allocations: 45.84 kB / 328.5 MB, free: 8.344 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.223e-05/0.1636, allocations: 56.55 kB / 328.5 MB, free: 8.285 MB / 282.7 MB Notification: Performance of pre-optimization done (n=136): time 2.504e-06/0.1636, allocations: 0 / 328.5 MB, free: 8.285 MB / 282.7 MB Notification: Performance of matching and sorting (n=151): time 0.005104/0.1687, allocations: 3.127 MB / 331.7 MB, free: 5.168 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.87e-05/0.1687, allocations: 76.5 kB / 331.7 MB, free: 5.082 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001623/0.1704, allocations: 1.62 MB / 333.4 MB, free: 3.707 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.828e-05/0.1704, allocations: 53.7 kB / 333.4 MB, free: 3.648 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009049/0.1714, allocations: 1.537 MB / 335 MB, free: 2.18 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003718/0.1717, allocations: 0.5446 MB / 335.5 MB, free: 1.664 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004538/0.1722, allocations: 369.4 kB / 335.9 MB, free: 1.336 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.1723, allocations: 484.8 kB / 336.3 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003789/0.1727, allocations: 207.8 kB / 336.5 MB, free: 0.6562 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00102/0.1737, allocations: 0.9216 MB / 337.5 MB, free: 15.5 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001281/0.175, allocations: 1.286 MB / 338.7 MB, free: 14.03 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.077e-06/0.175, allocations: 4 kB / 338.7 MB, free: 14.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.002594/0.1776, allocations: 1.697 MB / 340.4 MB, free: 12.41 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.368e-05/0.1776, allocations: 12.5 kB / 340.5 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.219e-05/0.1776, allocations: 20 kB / 340.5 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001501/0.1791, allocations: 0.5899 MB / 341.1 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007957/0.1799, allocations: 320.3 kB / 341.4 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01126/0.1912, allocations: 21.31 MB / 362.7 MB, free: 5.129 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008719/0.1921, allocations: 59.98 kB / 362.7 MB, free: 5.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001056/0.1922, allocations: 63.98 kB / 362.8 MB, free: 5.008 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator3.y[3],booleanReplicator2.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (194): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(2,9,100.0%), (1,6,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (1,2,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006188/0.1928, allocations: 276 kB / 363.1 MB, free: 4.754 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003139/0.1931, allocations: 258.7 kB / 363.3 MB, free: 4.5 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001933/0.195, allocations: 1.274 MB / 364.6 MB, free: 3.195 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.034e-05/0.195, allocations: 12 kB / 364.6 MB, free: 3.184 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/0.195, allocations: 8 kB / 364.6 MB, free: 3.176 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.353e-05/0.1951, allocations: 11.91 kB / 364.6 MB, free: 3.164 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005373/0.2004, allocations: 3.786 MB / 368.4 MB, free: 15.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.253e-06/0.2004, allocations: 3.984 kB / 368.4 MB, free: 15.65 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005134/0.2009, allocations: 182.4 kB / 368.6 MB, free: 15.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001189/0.2021, allocations: 0.4884 MB / 369.1 MB, free: 14.96 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.442e-05/0.2022, allocations: 47.67 kB / 369.1 MB, free: 14.92 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00907/0.2113, allocations: 18.66 MB / 387.8 MB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.2113, allocations: 11.28 kB / 387.8 MB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002561/0.2138, allocations: 1.81 MB / 389.6 MB, free: 9.422 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005151/0.2144, allocations: 333.6 kB / 389.9 MB, free: 9.098 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001744/0.2145, allocations: 36 kB / 390 MB, free: 9.062 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006202/0.2152, allocations: 71.95 kB / 390 MB, free: 8.992 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002238/0.2154, allocations: 128.6 kB / 390.2 MB, free: 8.871 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.032e-05/0.2155, allocations: 39.92 kB / 390.2 MB, free: 8.832 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0008547/0.2163, allocations: 0.8638 MB / 391.1 MB, free: 8.055 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2163, allocations: 0 / 391.1 MB, free: 8.055 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001833/0.2181, allocations: 0.6523 MB / 391.7 MB, free: 7.402 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,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.0003039/0.2184, allocations: 201.3 kB / 391.9 MB, free: 7.211 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002338/0.2208, allocations: 2.885 MB / 394.8 MB, free: 4.223 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.2208, allocations: 4 kB / 394.8 MB, free: 4.219 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001664/0.2225, allocations: 2.236 MB / 397 MB, free: 1.859 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001853/0.2243, allocations: 0.6312 MB / 397.7 MB, free: 1.262 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006266/0.2306, allocations: 4.881 MB / 402.6 MB, free: 12.32 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001033/0.2316, allocations: 0.7983 MB / 403.4 MB, free: 11.5 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000709/0.2323, allocations: 249.8 kB / 403.6 MB, free: 11.25 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001195/0.2335, allocations: 0.6462 MB / 404.2 MB, free: 10.61 MB / 362.7 MB Notification: Performance of SimCode: time 7.42e-07/0.2335, allocations: 4 kB / 404.3 MB, free: 10.6 MB / 362.7 MB Notification: Performance of Templates: time 0.1575/0.391, allocations: 40.15 MB / 444.4 MB, free: 103.3 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.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.758302681148052]