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.001135/0.001135, allocations: 75.91 kB / 21.18 MB, free: 3.391 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.0008899/0.0008899, allocations: 145.1 kB / 24.54 MB, free: 32 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 0.923/0.923, allocations: 173.3 MB / 201.1 MB, free: 9.336 MB / 186.7 MB " [Timeout remaining time 179] 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.[0-9,]+.|smpm.idq_sr.[0-9,]+.|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.[0-9,]+.|smpm.idq_sr.[0-9,]+.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.044e-06/2.044e-06, allocations: 0 / 268 MB, free: 6.418 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.443e-05/2.647e-05, allocations: 2.312 kB / 268 MB, free: 6.414 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.00912/0.009147, allocations: 11.33 MB / 279.3 MB, free: 11.03 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00552/0.01467, allocations: 3.513 MB / 282.9 MB, free: 7.504 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001085/0.01575, allocations: 87.44 kB / 282.9 MB, free: 7.418 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001459/0.01721, allocations: 0.8266 MB / 283.8 MB, free: 6.586 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001913/0.01912, allocations: 1.017 MB / 284.8 MB, free: 5.562 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005986/0.01972, allocations: 439.3 kB / 285.2 MB, free: 5.133 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002848/0.02257, allocations: 3.87 MB / 289.1 MB, free: 1.25 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1316/0.1542, allocations: 1.55 MB / 290.6 MB, free: 16.22 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003534/0.1577, allocations: 2.474 MB / 293.1 MB, free: 16.22 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002823/0.1605, allocations: 1.887 MB / 295 MB, free: 16.22 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001035/0.1616, allocations: 418.6 kB / 295.4 MB, free: 16.22 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009722/0.1626, allocations: 0.4935 MB / 295.9 MB, free: 16.22 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001048/0.1636, allocations: 1.264 MB / 297.2 MB, free: 16.22 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002239/0.1658, allocations: 1.356 MB / 298.5 MB, free: 16.22 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003591/0.1694, allocations: 3.172 MB / 301.7 MB, free: 15.79 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.1694, allocations: 2.219 kB / 301.7 MB, free: 15.79 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1694, allocations: 3.562 kB / 301.7 MB, free: 15.79 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.756e-05/0.1695, allocations: 0 / 301.7 MB, free: 15.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.004407/0.1739, allocations: 4.043 MB / 305.7 MB, free: 13.5 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.174, allocations: 7.922 kB / 305.7 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007764/0.1748, allocations: 0.6398 MB / 306.4 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002054/0.1768, allocations: 1.891 MB / 308.3 MB, free: 12.26 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.97e-05/0.1769, allocations: 212.3 kB / 308.5 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002354/0.1771, allocations: 295.8 kB / 308.8 MB, free: 12.06 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00262/0.1798, allocations: 2.523 MB / 311.3 MB, free: 10.76 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.81e-05/0.1798, allocations: 10.14 kB / 311.3 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001673/0.18, allocations: 122.1 kB / 311.4 MB, free: 10.66 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.733e-05/0.18, allocations: 125.3 kB / 311.5 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002126/0.1822, allocations: 1.063 MB / 312.6 MB, free: 10.27 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009996/0.1922, allocations: 9.981 MB / 322.6 MB, free: 0.582 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001375/0.1935, allocations: 1.075 MB / 323.7 MB, free: 15.55 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001149/0.1947, allocations: 0.6666 MB / 324.3 MB, free: 14.89 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001789/0.1949, allocations: 53.28 kB / 324.4 MB, free: 14.83 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.897e-05/0.1949, allocations: 54.7 kB / 324.4 MB, free: 14.77 MB / 282.7 MB Notification: Performance of pre-optimization done (n=136): time 3.407e-06/0.1949, allocations: 0 / 324.4 MB, free: 14.77 MB / 282.7 MB Notification: Performance of matching and sorting (n=151): time 0.007508/0.2024, allocations: 3.874 MB / 328.3 MB, free: 10.88 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.125e-05/0.2025, allocations: 72.72 kB / 328.4 MB, free: 10.8 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005015/0.2075, allocations: 1.668 MB / 330 MB, free: 9.125 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.98e-05/0.2076, allocations: 49.7 kB / 330.1 MB, free: 9.07 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008965/0.2085, allocations: 1.513 MB / 331.6 MB, free: 7.551 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003705/0.2088, allocations: 0.5391 MB / 332.1 MB, free: 7.02 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004624/0.2093, allocations: 365.1 kB / 332.5 MB, free: 6.652 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.2094, allocations: 483.3 kB / 333 MB, free: 6.18 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005875/0.21, allocations: 275.8 kB / 333.2 MB, free: 5.91 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009766/0.211, allocations: 0.9774 MB / 334.2 MB, free: 4.652 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004776/0.2157, allocations: 1.404 MB / 335.6 MB, free: 3.027 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.057e-06/0.2157, allocations: 4 kB / 335.6 MB, free: 3.023 MB / 282.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006149/0.2219, allocations: 1.865 MB / 337.5 MB, free: 1.227 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.884e-05/0.2219, allocations: 12 kB / 337.5 MB, free: 1.215 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.208e-05/0.2219, allocations: 19.98 kB / 337.5 MB, free: 1.195 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001687/0.2236, allocations: 0.6179 MB / 338.1 MB, free: 0.5391 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0039/0.2275, allocations: 342.8 kB / 338.5 MB, free: 232 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02032/0.2478, allocations: 21.79 MB / 360.3 MB, free: 9.215 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001107/0.249, allocations: 103.9 kB / 360.4 MB, free: 9.113 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.675e-05/0.249, allocations: 71.98 kB / 360.4 MB, free: 9.043 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.000793/0.2498, allocations: 274.7 kB / 360.7 MB, free: 8.789 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002813/0.2501, allocations: 266.7 kB / 361 MB, free: 8.527 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001798/0.2519, allocations: 1.391 MB / 362.4 MB, free: 7.102 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.217e-06/0.2519, allocations: 19.94 kB / 362.4 MB, free: 7.082 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.2519, allocations: 8 kB / 362.4 MB, free: 7.074 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.397e-06/0.2519, allocations: 7.969 kB / 362.4 MB, free: 7.066 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004853/0.2568, allocations: 3.971 MB / 366.4 MB, free: 3.012 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/0.2568, allocations: 4 kB / 366.4 MB, free: 3.008 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004087/0.2572, allocations: 197.4 kB / 366.6 MB, free: 2.828 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001055/0.2583, allocations: 0.5321 MB / 367.1 MB, free: 2.262 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.116e-05/0.2583, allocations: 32 kB / 367.1 MB, free: 2.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007914/0.2662, allocations: 19.09 MB / 386.2 MB, free: 14.01 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.631e-06/0.2663, allocations: 11.47 kB / 386.2 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00242/0.2687, allocations: 1.993 MB / 388.2 MB, free: 11.91 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000577/0.2692, allocations: 370.5 kB / 388.6 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001366/0.2694, allocations: 35.98 kB / 388.6 MB, free: 11.51 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005171/0.2699, allocations: 111.9 kB / 388.7 MB, free: 11.4 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002101/0.2701, allocations: 131.8 kB / 388.9 MB, free: 11.28 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.953e-05/0.2702, allocations: 47.98 kB / 388.9 MB, free: 11.23 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000975/0.2711, allocations: 0.9313 MB / 389.8 MB, free: 10.31 MB / 346.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2711, allocations: 0 / 389.8 MB, free: 10.31 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001733/0.2729, allocations: 0.6523 MB / 390.5 MB, free: 9.66 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.0003172/0.2732, allocations: 212.6 kB / 390.7 MB, free: 9.453 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002463/0.2757, allocations: 3.021 MB / 393.7 MB, free: 6.293 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.2757, allocations: 0 / 393.7 MB, free: 6.293 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001317/0.277, allocations: 2.32 MB / 396 MB, free: 3.82 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001421/0.2784, allocations: 0.6035 MB / 396.6 MB, free: 3.23 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006119/0.2845, allocations: 4.913 MB / 401.6 MB, free: 14.23 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007166/0.2852, allocations: 0.802 MB / 402.4 MB, free: 13.4 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0007142/0.286, allocations: 397.4 kB / 402.7 MB, free: 13.01 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002349/0.2862, allocations: 132.5 kB / 402.9 MB, free: 12.88 MB / 362.7 MB Notification: Performance of SimCode: time 7.61e-07/0.2862, allocations: 0 / 402.9 MB, free: 12.88 MB / 362.7 MB Notification: Performance of Templates: time 0.1436/0.4298, allocations: 38.13 MB / 441 MB, free: 109 MB / 378.7 MB " [Timeout remaining time 660] 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","",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.7689531571231782]