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.001041/0.001041, allocations: 76.06 kB / 21.69 MB, free: 2.855 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.001254/0.001254, allocations: 147.7 kB / 24.98 MB, free: 9.312 MB / 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.9741/0.9741, allocations: 173.4 MB / 201.5 MB, free: 9.301 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 1.352e-06/1.352e-06, allocations: 0 / 268.1 MB, free: 6.676 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.301e-05/2.437e-05, allocations: 6.25 kB / 268.1 MB, free: 6.668 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.009565/0.00959, allocations: 11.28 MB / 279.4 MB, free: 11.34 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005478/0.01507, allocations: 3.493 MB / 282.9 MB, free: 7.832 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00116/0.01623, allocations: 91.44 kB / 283 MB, free: 7.742 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001508/0.01774, allocations: 0.8305 MB / 283.8 MB, free: 6.906 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002216/0.01995, allocations: 1.009 MB / 284.8 MB, free: 5.891 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000871/0.02082, allocations: 443.3 kB / 285.2 MB, free: 5.457 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003374/0.0242, allocations: 3.863 MB / 289.1 MB, free: 1.578 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1203/0.1445, allocations: 1.558 MB / 290.7 MB, free: 16.18 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004123/0.1486, allocations: 2.474 MB / 293.1 MB, free: 16.18 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003164/0.1517, allocations: 1.886 MB / 295 MB, free: 16.18 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001215/0.153, allocations: 418.3 kB / 295.4 MB, free: 16.18 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001095/0.1541, allocations: 0.4972 MB / 295.9 MB, free: 16.18 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001183/0.1552, allocations: 1.266 MB / 297.2 MB, free: 16.18 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002826/0.1581, allocations: 1.354 MB / 298.5 MB, free: 16.18 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004559/0.1626, allocations: 3.172 MB / 301.7 MB, free: 15.74 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.1626, allocations: 1.219 kB / 301.7 MB, free: 15.74 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1626, allocations: 0 / 301.7 MB, free: 15.74 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002256/0.1629, allocations: 0 / 301.7 MB, free: 15.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.005994/0.1689, allocations: 4.047 MB / 305.8 MB, free: 13.45 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.1689, allocations: 7.578 kB / 305.8 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009793/0.1699, allocations: 0.6378 MB / 306.4 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002221/0.1721, allocations: 1.887 MB / 308.3 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.111e-05/0.1722, allocations: 216.4 kB / 308.5 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002435/0.1724, allocations: 292.1 kB / 308.8 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002896/0.1753, allocations: 2.525 MB / 311.3 MB, free: 10.78 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.858e-05/0.1754, allocations: 9.234 kB / 311.3 MB, free: 10.78 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001655/0.1756, allocations: 124.2 kB / 311.5 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.866e-05/0.1756, allocations: 124.9 kB / 311.6 MB, free: 10.67 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00199/0.1776, allocations: 1.069 MB / 312.6 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009651/0.1873, allocations: 9.98 MB / 322.6 MB, free: 0.6641 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001183/0.1885, allocations: 1.081 MB / 323.7 MB, free: 15.62 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009723/0.1894, allocations: 0.6655 MB / 324.4 MB, free: 14.96 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001768/0.1896, allocations: 49.28 kB / 324.4 MB, free: 14.91 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.385e-05/0.1896, allocations: 54.7 kB / 324.5 MB, free: 14.85 MB / 282.7 MB Notification: Performance of pre-optimization done (n=136): time 3.106e-06/0.1897, allocations: 0 / 324.5 MB, free: 14.85 MB / 282.7 MB Notification: Performance of matching and sorting (n=151): time 0.00714/0.1968, allocations: 3.881 MB / 328.4 MB, free: 10.96 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.664e-05/0.1968, allocations: 72.72 kB / 328.4 MB, free: 10.88 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001882/0.1987, allocations: 1.664 MB / 330.1 MB, free: 9.207 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001043/0.1988, allocations: 49.7 kB / 330.1 MB, free: 9.152 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009459/0.1998, allocations: 1.514 MB / 331.7 MB, free: 7.629 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004007/0.2002, allocations: 0.5426 MB / 332.2 MB, free: 7.094 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000406/0.2006, allocations: 365.1 kB / 332.6 MB, free: 6.727 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.2007, allocations: 476.8 kB / 333 MB, free: 6.258 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005352/0.2012, allocations: 271.8 kB / 333.3 MB, free: 5.992 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001177/0.2024, allocations: 0.9824 MB / 334.3 MB, free: 4.73 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001573/0.204, allocations: 1.402 MB / 335.7 MB, free: 3.105 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-05/0.204, allocations: 4 kB / 335.7 MB, free: 3.102 MB / 282.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.002807/0.2068, allocations: 1.854 MB / 337.5 MB, free: 1.309 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.371e-05/0.2068, allocations: 12 kB / 337.5 MB, free: 1.297 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.196e-05/0.2068, allocations: 16 kB / 337.6 MB, free: 1.281 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001479/0.2083, allocations: 0.6255 MB / 338.2 MB, free: 0.6172 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007124/0.209, allocations: 339.4 kB / 338.5 MB, free: 316 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01114/0.2202, allocations: 21.79 MB / 360.3 MB, free: 9.289 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00132/0.2215, allocations: 103.8 kB / 360.4 MB, free: 9.188 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001142/0.2216, allocations: 76 kB / 360.5 MB, free: 9.113 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.0009306/0.2225, allocations: 277.9 kB / 360.7 MB, free: 8.855 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003662/0.2229, allocations: 262.7 kB / 361 MB, free: 8.598 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002325/0.2252, allocations: 1.388 MB / 362.4 MB, free: 7.176 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.331e-05/0.2252, allocations: 23.88 kB / 362.4 MB, free: 7.152 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.755e-05/0.2252, allocations: 4 kB / 362.4 MB, free: 7.148 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.179e-05/0.2253, allocations: 15.97 kB / 362.4 MB, free: 7.133 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005394/0.2307, allocations: 3.966 MB / 366.4 MB, free: 3.082 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/0.2307, allocations: 4 kB / 366.4 MB, free: 3.078 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004492/0.2311, allocations: 193.1 kB / 366.6 MB, free: 2.902 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001162/0.2323, allocations: 0.5325 MB / 367.1 MB, free: 2.332 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.965e-05/0.2323, allocations: 31.98 kB / 367.2 MB, free: 2.301 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009386/0.2417, allocations: 19.09 MB / 386.2 MB, free: 14.08 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.2417, allocations: 7.375 kB / 386.3 MB, free: 14.08 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002942/0.2447, allocations: 1.994 MB / 388.2 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008003/0.2455, allocations: 378.4 kB / 388.6 MB, free: 11.61 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000173/0.2457, allocations: 35.98 kB / 388.7 MB, free: 11.58 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005672/0.2462, allocations: 103.9 kB / 388.8 MB, free: 11.48 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002964/0.2465, allocations: 135.9 kB / 388.9 MB, free: 11.35 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.306e-05/0.2466, allocations: 44 kB / 388.9 MB, free: 11.31 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001292/0.2479, allocations: 0.9313 MB / 389.9 MB, free: 10.39 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2479, allocations: 0 / 389.9 MB, free: 10.39 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002158/0.25, allocations: 0.6523 MB / 390.5 MB, free: 9.734 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.0003414/0.2504, allocations: 216.3 kB / 390.7 MB, free: 9.527 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003022/0.2534, allocations: 3.022 MB / 393.7 MB, free: 6.363 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.2534, allocations: 0 / 393.7 MB, free: 6.363 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001449/0.2548, allocations: 2.317 MB / 396.1 MB, free: 3.895 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001595/0.2564, allocations: 0.612 MB / 396.7 MB, free: 3.297 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006965/0.2634, allocations: 4.908 MB / 401.6 MB, free: 14.3 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007243/0.2641, allocations: 0.8058 MB / 402.4 MB, free: 13.47 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0008207/0.265, allocations: 397.4 kB / 402.8 MB, free: 13.08 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002451/0.2652, allocations: 128.5 kB / 402.9 MB, free: 12.95 MB / 362.7 MB Notification: Performance of SimCode: time 1.593e-06/0.2652, allocations: 0 / 402.9 MB, free: 12.95 MB / 362.7 MB Notification: Performance of Templates: time 0.1519/0.4171, allocations: 38.13 MB / 441 MB, free: 114.2 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.74876542086713]