Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001806/0.001806, allocations: 99.86 kB / 20.96 MB, free: 3.461 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001863/0.001863, allocations: 149.1 kB / 24.26 MB, free: 168 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.529/1.529, allocations: 173.3 MB / 200.8 MB, free: 9.328 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.0.0_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.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 4.439e-06/4.439e-06, allocations: 3.984 kB / 267.3 MB, free: 6.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.758e-05/3.202e-05, allocations: 2.312 kB / 267.3 MB, free: 6.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01606/0.01609, allocations: 11.24 MB / 278.6 MB, free: 11.43 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008518/0.02461, allocations: 3.494 MB / 282.1 MB, free: 7.926 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00212/0.02673, allocations: 91.38 kB / 282.2 MB, free: 7.836 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002721/0.02945, allocations: 0.8266 MB / 283 MB, free: 7.004 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003212/0.03267, allocations: 1.017 MB / 284 MB, free: 5.98 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001168/0.03383, allocations: 443.3 kB / 284.4 MB, free: 5.547 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005216/0.03905, allocations: 3.863 MB / 288.3 MB, free: 1.668 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002482/0.04153, allocations: 1.561 MB / 289.9 MB, free: 44 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.122/0.1635, allocations: 2.467 MB / 292.3 MB, free: 16.44 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003568/0.1671, allocations: 1.888 MB / 294.2 MB, free: 16.44 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001452/0.1685, allocations: 418 kB / 294.6 MB, free: 16.44 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002024/0.1705, allocations: 0.4952 MB / 295.1 MB, free: 16.44 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001582/0.1721, allocations: 1.269 MB / 296.4 MB, free: 16.44 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003111/0.1752, allocations: 1.351 MB / 297.7 MB, free: 16.44 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006683/0.1819, allocations: 5.658 MB / 303.4 MB, free: 15.2 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1819, allocations: 1.625 kB / 303.4 MB, free: 15.2 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.61e-07/0.1819, allocations: 0 / 303.4 MB, free: 15.2 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001656/0.1821, allocations: 0 / 303.4 MB, free: 15.2 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.008339/0.1904, allocations: 4.302 MB / 307.7 MB, free: 12.31 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.508e-05/0.1904, allocations: 8.359 kB / 307.7 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001149/0.1916, allocations: 0.6348 MB / 308.3 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003485/0.1951, allocations: 1.916 MB / 310.3 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001175/0.1952, allocations: 217 kB / 310.5 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003803/0.1956, allocations: 286.2 kB / 310.8 MB, free: 10.62 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005403/0.201, allocations: 3.99 MB / 314.7 MB, free: 8.004 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.998e-05/0.201, allocations: 7.547 kB / 314.7 MB, free: 8 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002355/0.2013, allocations: 119.4 kB / 314.9 MB, free: 7.91 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.984e-05/0.2014, allocations: 127.9 kB / 315 MB, free: 7.891 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003825/0.2052, allocations: 2.617 MB / 317.6 MB, free: 5.324 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02181/0.227, allocations: 13.42 MB / 331 MB, free: 7.656 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00237/0.2294, allocations: 1.35 MB / 332.4 MB, free: 6.344 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001982/0.2314, allocations: 0.8947 MB / 333.3 MB, free: 5.461 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000229/0.2316, allocations: 49.28 kB / 333.3 MB, free: 5.414 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.219e-05/0.2316, allocations: 54.7 kB / 333.4 MB, free: 5.352 MB / 282.7 MB Notification: Performance of pre-optimization done (n=136): time 2.725e-06/0.2316, allocations: 0 / 333.4 MB, free: 5.352 MB / 282.7 MB Notification: Performance of matching and sorting (n=151): time 0.01292/0.2446, allocations: 4.774 MB / 338.2 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.067e-05/0.2446, allocations: 64.72 kB / 338.2 MB, free: 496 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00372/0.2483, allocations: 2.234 MB / 340.4 MB, free: 14.24 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001758/0.2485, allocations: 53.7 kB / 340.5 MB, free: 14.18 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001578/0.2501, allocations: 1.594 MB / 342.1 MB, free: 12.58 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006843/0.2508, allocations: 0.5734 MB / 342.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007856/0.2516, allocations: 429.1 kB / 343.1 MB, free: 11.59 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002387/0.2518, allocations: 476.8 kB / 343.6 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001176/0.253, allocations: 0.5343 MB / 344.1 MB, free: 10.59 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001992/0.255, allocations: 1.302 MB / 345.4 MB, free: 9.008 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003135/0.2581, allocations: 1.998 MB / 347.4 MB, free: 6.789 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.078e-05/0.2581, allocations: 4 kB / 347.4 MB, free: 6.785 MB / 298.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005459/0.2636, allocations: 2.464 MB / 349.9 MB, free: 4.383 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.18e-05/0.2636, allocations: 12 kB / 349.9 MB, free: 4.371 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.732e-05/0.2636, allocations: 16 kB / 349.9 MB, free: 4.355 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003015/0.2666, allocations: 0.742 MB / 350.6 MB, free: 3.578 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001338/0.268, allocations: 344 kB / 351 MB, free: 3.266 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02289/0.2909, allocations: 22.88 MB / 373.8 MB, free: 11.15 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001868/0.2927, allocations: 99.91 kB / 373.9 MB, free: 11.05 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001793/0.2929, allocations: 76 kB / 374 MB, free: 10.98 MB / 330.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.001726/0.2946, allocations: 0.7866 MB / 374.8 MB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005259/0.2952, allocations: 258.7 kB / 375.1 MB, free: 9.949 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004079/0.2993, allocations: 1.787 MB / 376.8 MB, free: 8.133 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.838e-05/0.2993, allocations: 19.94 kB / 376.9 MB, free: 8.113 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.051e-05/0.2993, allocations: 4.109 kB / 376.9 MB, free: 8.109 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.609e-05/0.2993, allocations: 11.91 kB / 376.9 MB, free: 8.098 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01091/0.3102, allocations: 4.989 MB / 381.9 MB, free: 3.016 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-05/0.3102, allocations: 4 kB / 381.9 MB, free: 3.012 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008346/0.3111, allocations: 198.3 kB / 382.1 MB, free: 2.828 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002359/0.3134, allocations: 0.61 MB / 382.7 MB, free: 2.18 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001114/0.3135, allocations: 43.98 kB / 382.7 MB, free: 2.137 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01869/0.3322, allocations: 19.92 MB / 402.6 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.231e-06/0.3322, allocations: 4 kB / 402.6 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00536/0.3376, allocations: 2.574 MB / 405.2 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001383/0.339, allocations: 373.9 kB / 405.6 MB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003573/0.3393, allocations: 39.98 kB / 405.6 MB, free: 10.01 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001105/0.3404, allocations: 99.91 kB / 405.7 MB, free: 9.914 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003607/0.3408, allocations: 132.3 kB / 405.9 MB, free: 9.789 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/0.3409, allocations: 48 kB / 405.9 MB, free: 9.742 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002303/0.3432, allocations: 1.294 MB / 407.2 MB, free: 8.457 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3432, allocations: 0 / 407.2 MB, free: 8.457 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002757/0.346, allocations: 0.6562 MB / 407.8 MB, free: 7.801 MB / 362.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.0004383/0.3464, allocations: 200.5 kB / 408 MB, free: 7.605 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005335/0.3517, allocations: 3.492 MB / 411.5 MB, free: 3.977 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.744e-06/0.3517, allocations: 4 kB / 411.5 MB, free: 3.973 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003254/0.355, allocations: 2.492 MB / 414 MB, free: 1.328 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00309/0.3581, allocations: 0.6228 MB / 414.7 MB, free: 0.7227 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01051/0.3686, allocations: 5.208 MB / 419.9 MB, free: 11.42 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002135/0.3707, allocations: 1.601 MB / 421.5 MB, free: 9.785 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001419/0.3722, allocations: 401.4 kB / 421.9 MB, free: 9.391 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003617/0.3725, allocations: 124.5 kB / 422 MB, free: 9.27 MB / 378.7 MB Notification: Performance of SimCode: time 1.353e-06/0.3725, allocations: 0 / 422 MB, free: 9.27 MB / 378.7 MB Notification: Performance of Templates: time 0.193/0.5655, allocations: 38.11 MB / 460.1 MB, free: 105 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.966737366048619]