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.0009754/0.0009754, allocations: 79.69 kB / 21.7 MB, free: 2.852 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.0009026/0.0009026, allocations: 165 kB / 24.99 MB, free: 8.801 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.9938/0.9938, allocations: 177 MB / 205.2 MB, free: 5.586 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.372e-06/1.372e-06, allocations: 0 / 273 MB, free: 1.734 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.742e-05/1.88e-05, allocations: 2.312 kB / 273 MB, free: 1.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.008495/0.008514, allocations: 11.32 MB / 284.3 MB, free: 6.348 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005021/0.01353, allocations: 3.544 MB / 287.9 MB, free: 2.789 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009873/0.01452, allocations: 83.44 kB / 288 MB, free: 2.707 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001299/0.01582, allocations: 0.8421 MB / 288.8 MB, free: 1.859 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00149/0.01731, allocations: 1.017 MB / 289.8 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005457/0.01786, allocations: 443.3 kB / 290.3 MB, free: 412 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.108/0.1258, allocations: 3.885 MB / 294.1 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00213/0.128, allocations: 1.549 MB / 295.7 MB, free: 15 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003241/0.1312, allocations: 2.495 MB / 298.2 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002171/0.1334, allocations: 1.897 MB / 300.1 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006203/0.134, allocations: 418.3 kB / 300.5 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007508/0.1348, allocations: 0.5015 MB / 301 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007829/0.1355, allocations: 1.266 MB / 302.3 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001238/0.1368, allocations: 1.355 MB / 303.6 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002335/0.1391, allocations: 3.182 MB / 306.8 MB, free: 11.79 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.1391, allocations: 0 / 306.8 MB, free: 11.79 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1391, allocations: 1.125 kB / 306.8 MB, free: 11.79 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.059e-05/0.1392, allocations: 0 / 306.8 MB, free: 11.79 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.004126/0.1433, allocations: 4.043 MB / 310.8 MB, free: 9.453 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.1433, allocations: 18.91 kB / 310.9 MB, free: 9.445 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008075/0.1441, allocations: 0.64 MB / 311.5 MB, free: 9.094 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001735/0.1459, allocations: 1.908 MB / 313.4 MB, free: 7.242 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.785e-05/0.1459, allocations: 215.5 kB / 313.6 MB, free: 7.035 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000234/0.1462, allocations: 288.3 kB / 313.9 MB, free: 6.754 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00238/0.1486, allocations: 2.528 MB / 316.4 MB, free: 4.062 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.824e-05/0.1486, allocations: 7.984 kB / 316.4 MB, free: 4.055 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001678/0.1488, allocations: 119.9 kB / 316.5 MB, free: 3.938 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-05/0.1488, allocations: 125.5 kB / 316.7 MB, free: 3.812 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00173/0.1506, allocations: 1.072 MB / 317.7 MB, free: 2.742 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009298/0.1599, allocations: 9.98 MB / 327.7 MB, free: 8.711 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001189/0.1611, allocations: 1.073 MB / 328.8 MB, free: 7.684 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009139/0.162, allocations: 0.6634 MB / 329.5 MB, free: 7.027 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000158/0.1621, allocations: 57.28 kB / 329.5 MB, free: 6.973 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.125e-05/0.1622, allocations: 50.7 kB / 329.6 MB, free: 6.914 MB / 282.7 MB Notification: Performance of pre-optimization done (n=136): time 2.846e-06/0.1622, allocations: 0 / 329.6 MB, free: 6.914 MB / 282.7 MB Notification: Performance of matching and sorting (n=151): time 0.00591/0.1681, allocations: 3.878 MB / 333.4 MB, free: 3.023 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.482e-05/0.1681, allocations: 68.72 kB / 333.5 MB, free: 2.941 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001479/0.1696, allocations: 1.676 MB / 335.2 MB, free: 1.258 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.169e-05/0.1697, allocations: 53.7 kB / 335.2 MB, free: 1.199 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006944/0.1704, allocations: 1.515 MB / 336.8 MB, free: 15.67 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002895/0.1706, allocations: 0.5471 MB / 337.3 MB, free: 15.13 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003518/0.171, allocations: 369.1 kB / 337.7 MB, free: 14.76 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.751e-05/0.1711, allocations: 480.8 kB / 338.1 MB, free: 14.29 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007044/0.1718, allocations: 271.8 kB / 338.4 MB, free: 14.02 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007492/0.1725, allocations: 0.9848 MB / 339.4 MB, free: 12.77 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001266/0.1738, allocations: 1.396 MB / 340.8 MB, free: 11.15 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.053e-06/0.1738, allocations: 4 kB / 340.8 MB, free: 11.15 MB / 298.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.002379/0.1762, allocations: 1.859 MB / 342.6 MB, free: 9.355 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.1762, allocations: 16.06 kB / 342.7 MB, free: 9.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.591e-05/0.1762, allocations: 16 kB / 342.7 MB, free: 9.324 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001294/0.1775, allocations: 0.6227 MB / 343.3 MB, free: 8.668 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006428/0.1782, allocations: 339.8 kB / 343.6 MB, free: 8.359 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009756/0.1879, allocations: 21.8 MB / 365.4 MB, free: 1.328 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006687/0.1886, allocations: 103.8 kB / 365.5 MB, free: 1.227 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.775e-05/0.1887, allocations: 68 kB / 365.6 MB, free: 1.16 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%), (2,1,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.0004775/0.1892, allocations: 282.6 kB / 365.9 MB, free: 0.8984 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002454/0.1894, allocations: 262.7 kB / 366.1 MB, free: 0.6406 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002063/0.1915, allocations: 1.388 MB / 367.5 MB, free: 15.21 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.927e-06/0.1915, allocations: 19.94 kB / 367.5 MB, free: 15.2 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.1915, allocations: 8 kB / 367.5 MB, free: 15.19 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.032e-05/0.1915, allocations: 7.969 kB / 367.5 MB, free: 15.18 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004519/0.196, allocations: 3.967 MB / 371.5 MB, free: 11.12 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/0.196, allocations: 4 kB / 371.5 MB, free: 11.12 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004142/0.1964, allocations: 197.8 kB / 371.7 MB, free: 10.94 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001062/0.1975, allocations: 0.5351 MB / 372.2 MB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.712e-05/0.1976, allocations: 35.98 kB / 372.3 MB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00814/0.2057, allocations: 19.08 MB / 391.4 MB, free: 6.117 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.2057, allocations: 7.562 kB / 391.4 MB, free: 6.113 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002242/0.2079, allocations: 1.999 MB / 393.4 MB, free: 4.02 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004618/0.2084, allocations: 374.5 kB / 393.7 MB, free: 3.652 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001533/0.2086, allocations: 35.98 kB / 393.8 MB, free: 3.617 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004957/0.2091, allocations: 99.91 kB / 393.9 MB, free: 3.52 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002135/0.2093, allocations: 143.6 kB / 394 MB, free: 3.383 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.46e-05/0.2093, allocations: 40 kB / 394 MB, free: 3.344 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000887/0.2102, allocations: 0.9433 MB / 395 MB, free: 2.41 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.2102, allocations: 0 / 395 MB, free: 2.41 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001641/0.2118, allocations: 0.6601 MB / 395.7 MB, free: 1.75 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%), (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.0002734/0.2121, allocations: 197 kB / 395.8 MB, free: 1.562 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00218/0.2143, allocations: 3.03 MB / 398.9 MB, free: 14.39 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.2143, allocations: 0 / 398.9 MB, free: 14.39 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001257/0.2156, allocations: 2.315 MB / 401.2 MB, free: 11.93 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001404/0.217, allocations: 0.6322 MB / 401.8 MB, free: 11.33 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005497/0.2225, allocations: 4.929 MB / 406.8 MB, free: 6.312 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005989/0.2231, allocations: 0.7983 MB / 407.6 MB, free: 5.492 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006566/0.2237, allocations: 393.5 kB / 407.9 MB, free: 5.105 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002256/0.2239, allocations: 128.5 kB / 408.1 MB, free: 4.98 MB / 362.7 MB Notification: Performance of SimCode: time 1.142e-06/0.2239, allocations: 7.5 kB / 408.1 MB, free: 4.977 MB / 362.7 MB Notification: Performance of Templates: time 0.1361/0.36, allocations: 38.23 MB / 446.3 MB, free: 113.5 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.6402201470918953]