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.0007487/0.0007487, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001001/0.00175, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.000694/0.000694, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008894/0.001583, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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.9617/0.9617, allocations: 177.5 MB / 190 MB, free: 4.77 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08332/1.045, allocations: 53.87 MB / 243.9 MB, free: 14.83 MB / 250.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.463e-06/1.463e-06, allocations: 0 / 245.2 MB, free: 13.53 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.174e-05/1.321e-05, allocations: 2.312 kB / 245.2 MB, free: 13.52 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.009053/0.009066, allocations: 11.18 MB / 256.4 MB, free: 2.293 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006005/0.01507, allocations: 3.683 MB / 260.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00103/0.0161, allocations: 83.44 kB / 260.2 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001445/0.01755, allocations: 0.8616 MB / 261 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001834/0.01938, allocations: 1.013 MB / 262 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006312/0.02001, allocations: 447.3 kB / 262.5 MB, free: 12.19 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002489/0.0225, allocations: 3.922 MB / 266.4 MB, free: 8.246 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001309/0.02381, allocations: 1.585 MB / 268 MB, free: 6.582 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002602/0.02641, allocations: 2.768 MB / 270.8 MB, free: 3.789 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001554/0.02796, allocations: 1.863 MB / 272.6 MB, free: 1.922 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003978/0.02836, allocations: 412 kB / 273 MB, free: 1.52 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006432/0.02901, allocations: 0.4958 MB / 273.5 MB, free: 1.023 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005977/0.0296, allocations: 1.005 MB / 274.5 MB, free: 16 kB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.1095/0.1391, allocations: 1.106 MB / 275.6 MB, free: 7.613 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003922/0.143, allocations: 2.949 MB / 278.6 MB, free: 7.344 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.258e-05/0.143, allocations: 0 / 278.6 MB, free: 7.344 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.143, allocations: 4.406 kB / 278.6 MB, free: 7.344 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001314/0.1432, allocations: 0 / 278.6 MB, free: 7.344 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.006611/0.1498, allocations: 4.281 MB / 282.9 MB, free: 5.863 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.1498, allocations: 9.625 kB / 282.9 MB, free: 5.863 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001185/0.151, allocations: 0.5828 MB / 283.5 MB, free: 5.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002306/0.1533, allocations: 1.387 MB / 284.8 MB, free: 5.25 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001208/0.1534, allocations: 210.6 kB / 285.1 MB, free: 5.242 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003676/0.1538, allocations: 290.1 kB / 285.3 MB, free: 5.238 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002868/0.1567, allocations: 2.368 MB / 287.7 MB, free: 4.578 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.16e-05/0.1567, allocations: 10 kB / 287.7 MB, free: 4.578 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002196/0.1569, allocations: 123.6 kB / 287.8 MB, free: 4.574 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.12e-05/0.157, allocations: 124.5 kB / 288 MB, free: 4.566 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001435/0.1585, allocations: 0.8453 MB / 288.8 MB, free: 4.473 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007941/0.1664, allocations: 7.76 MB / 296.6 MB, free: 1.477 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007574/0.1672, allocations: 0.9771 MB / 297.5 MB, free: 1.328 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005665/0.1677, allocations: 0.5618 MB / 298.1 MB, free: 1.246 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001167/0.1679, allocations: 47.02 kB / 298.1 MB, free: 1.242 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.557e-05/0.1679, allocations: 46.72 kB / 298.2 MB, free: 1.195 MB / 266.7 MB Notification: Performance of pre-optimization done (n=136): time 2.505e-06/0.1679, allocations: 0 / 298.2 MB, free: 1.195 MB / 266.7 MB Notification: Performance of matching and sorting (n=151): time 0.004606/0.1725, allocations: 3.161 MB / 301.3 MB, free: 15.05 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.619e-05/0.1725, allocations: 72.66 kB / 301.4 MB, free: 14.96 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001276/0.1738, allocations: 1.343 MB / 302.8 MB, free: 14.11 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.317e-05/0.1739, allocations: 53.7 kB / 302.8 MB, free: 14.05 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004856/0.1744, allocations: 1.166 MB / 304 MB, free: 12.97 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002656/0.1746, allocations: 0.527 MB / 304.5 MB, free: 12.47 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003001/0.1749, allocations: 333.3 kB / 304.8 MB, free: 12.18 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.614e-05/0.175, allocations: 305.1 kB / 305.1 MB, free: 11.88 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002788/0.1753, allocations: 210.8 kB / 305.3 MB, free: 11.68 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004489/0.1757, allocations: 0.679 MB / 306 MB, free: 10.84 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000909/0.1766, allocations: 1.145 MB / 307.2 MB, free: 9.578 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.728e-06/0.1766, allocations: 4 kB / 307.2 MB, free: 9.574 MB / 282.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.001649/0.1783, allocations: 1.423 MB / 308.6 MB, free: 8.227 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.1783, allocations: 12 kB / 308.6 MB, free: 8.215 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.511e-05/0.1783, allocations: 16 kB / 308.6 MB, free: 8.199 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00113/0.1795, allocations: 0.5789 MB / 309.2 MB, free: 7.594 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009458/0.1804, allocations: 371.5 kB / 309.6 MB, free: 7.254 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007322/0.1877, allocations: 15.29 MB / 324.8 MB, free: 7.125 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006319/0.1884, allocations: 55.95 kB / 324.9 MB, free: 7.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.942e-05/0.1884, allocations: 63.98 kB / 325 MB, free: 7.008 MB / 298.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.0006217/0.1891, allocations: 227.2 kB / 325.2 MB, free: 6.801 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002099/0.1893, allocations: 175.8 kB / 325.4 MB, free: 6.629 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001305/0.1906, allocations: 1.107 MB / 326.5 MB, free: 5.508 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.095e-06/0.1906, allocations: 19.06 kB / 326.5 MB, free: 5.492 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.1906, allocations: 8 kB / 326.5 MB, free: 5.484 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/0.1906, allocations: 7.969 kB / 326.5 MB, free: 5.477 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003616/0.1942, allocations: 3.173 MB / 329.7 MB, free: 2.594 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.48e-06/0.1942, allocations: 4 kB / 329.7 MB, free: 2.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004576/0.1947, allocations: 213.9 kB / 329.9 MB, free: 2.395 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003976/0.1951, allocations: 262.5 kB / 330.1 MB, free: 2.137 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001056/0.1961, allocations: 0.5719 MB / 330.7 MB, free: 1.539 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.688e-05/0.1962, allocations: 31.98 kB / 330.7 MB, free: 1.508 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006049/0.2022, allocations: 13.22 MB / 344 MB, free: 3.504 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.614e-06/0.2023, allocations: 7.094 kB / 344 MB, free: 3.5 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001685/0.2039, allocations: 1.568 MB / 345.5 MB, free: 1.883 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001498/0.2041, allocations: 35.98 kB / 345.6 MB, free: 1.848 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004495/0.2045, allocations: 71.97 kB / 345.6 MB, free: 1.777 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002082/0.2047, allocations: 136.8 kB / 345.8 MB, free: 1.645 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000258/0.205, allocations: 28 kB / 345.8 MB, free: 1.617 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005547/0.2056, allocations: 0.6756 MB / 346.5 MB, free: 1.027 MB / 314.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2056, allocations: 0 / 346.5 MB, free: 1.027 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001583/0.2071, allocations: 0.6523 MB / 347.1 MB, free: 384 kB / 314.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.0002633/0.2074, allocations: 191.6 kB / 347.3 MB, free: 200 kB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001633/0.209, allocations: 2.225 MB / 349.5 MB, free: 13.93 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.573e-05/0.2091, allocations: 32.44 kB / 349.6 MB, free: 13.9 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001027/0.2101, allocations: 1.721 MB / 351.3 MB, free: 12.11 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003203/0.2133, allocations: 6.538 MB / 357.8 MB, free: 4.254 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01922/0.2325, allocations: 4.916 MB / 362.7 MB, free: 15.3 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006148/0.2331, allocations: 0.6925 MB / 363.4 MB, free: 14.59 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0007648/0.2339, allocations: 249.9 kB / 363.7 MB, free: 14.34 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009127/0.2348, allocations: 0.5732 MB / 364.3 MB, free: 13.77 MB / 346.7 MB Notification: Performance of SimCode: time 9.01e-07/0.2348, allocations: 0 / 364.3 MB, free: 13.77 MB / 346.7 MB Notification: Performance of Templates: time 0.05473/0.2896, allocations: 42.12 MB / 406.4 MB, free: 4.277 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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.4528405042365193]