Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008909/0.0008909, allocations: 80.92 kB / 21.49 MB, free: 2.996 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009158/0.0009158, allocations: 171.9 kB / 24.92 MB, free: 8.723 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9153/0.9153, allocations: 177.1 MB / 205.3 MB, free: 5.105 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.132e-06/1.132e-06, allocations: 0 / 273.5 MB, free: 1.16 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.358e-05/1.471e-05, allocations: 5.969 kB / 273.5 MB, free: 1.156 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.008287/0.008302, allocations: 11.05 MB / 284.5 MB, free: 6.051 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004954/0.01326, allocations: 3.652 MB / 288.2 MB, free: 2.383 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006978/0.01395, allocations: 91.38 kB / 288.3 MB, free: 2.293 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001184/0.01514, allocations: 0.8421 MB / 289.1 MB, free: 1.445 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001329/0.01647, allocations: 1.024 MB / 290.1 MB, free: 424 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.09233/0.1088, allocations: 439.6 kB / 290.6 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003581/0.1124, allocations: 3.88 MB / 294.4 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0017/0.1141, allocations: 1.581 MB / 296 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00298/0.1171, allocations: 2.545 MB / 298.6 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002387/0.1194, allocations: 1.869 MB / 300.4 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007357/0.1202, allocations: 412.1 kB / 300.8 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008069/0.121, allocations: 497.7 kB / 301.3 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006711/0.1217, allocations: 1.241 MB / 302.6 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001034/0.1227, allocations: 1.348 MB / 303.9 MB, free: 12.97 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001806/0.1245, allocations: 3.144 MB / 307.1 MB, free: 11.7 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.485e-06/0.1245, allocations: 0 / 307.1 MB, free: 11.7 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.62e-07/0.1245, allocations: 0 / 307.1 MB, free: 11.7 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.853e-05/0.1245, allocations: 0.8438 kB / 307.1 MB, free: 11.7 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.002782/0.1273, allocations: 3.574 MB / 310.6 MB, free: 9.805 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.911e-05/0.1273, allocations: 9.219 kB / 310.6 MB, free: 9.805 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006067/0.1279, allocations: 0.5166 MB / 311.2 MB, free: 9.367 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001285/0.1292, allocations: 1.369 MB / 312.5 MB, free: 8.055 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.776e-05/0.1293, allocations: 214.1 kB / 312.7 MB, free: 7.844 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002106/0.1295, allocations: 284.4 kB / 313 MB, free: 7.566 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001615/0.1311, allocations: 2.372 MB / 315.4 MB, free: 5.156 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.605e-05/0.1312, allocations: 7 kB / 315.4 MB, free: 5.152 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001471/0.1313, allocations: 123.9 kB / 315.5 MB, free: 5.031 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.255e-05/0.1314, allocations: 121.5 kB / 315.6 MB, free: 4.91 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009957/0.1324, allocations: 0.844 MB / 316.5 MB, free: 4.055 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006454/0.1388, allocations: 7.738 MB / 324.2 MB, free: 12.62 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008609/0.1397, allocations: 0.981 MB / 325.2 MB, free: 11.68 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006339/0.1403, allocations: 0.5519 MB / 325.8 MB, free: 11.15 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001105/0.1404, allocations: 49.3 kB / 325.8 MB, free: 11.1 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.713e-05/0.1405, allocations: 50.12 kB / 325.8 MB, free: 11.05 MB / 282.7 MB Notification: Performance of pre-optimization done (n=136): time 2.254e-06/0.1405, allocations: 4 kB / 325.9 MB, free: 11.04 MB / 282.7 MB Notification: Performance of matching and sorting (n=151): time 0.004518/0.145, allocations: 3.094 MB / 328.9 MB, free: 7.957 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.027e-05/0.145, allocations: 76.59 kB / 329 MB, free: 7.867 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008728/0.1459, allocations: 1.344 MB / 330.4 MB, free: 6.781 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.59e-05/0.146, allocations: 49.7 kB / 330.4 MB, free: 6.727 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004268/0.1464, allocations: 1.165 MB / 331.6 MB, free: 5.629 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002364/0.1466, allocations: 0.5328 MB / 332.1 MB, free: 5.129 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002999/0.1469, allocations: 328.4 kB / 332.4 MB, free: 4.84 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.481e-05/0.147, allocations: 301.1 kB / 332.7 MB, free: 4.543 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002777/0.1472, allocations: 214.7 kB / 332.9 MB, free: 4.332 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004391/0.1477, allocations: 0.6806 MB / 333.6 MB, free: 3.496 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000824/0.1485, allocations: 1.096 MB / 334.7 MB, free: 2.297 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/0.1485, allocations: 8 kB / 334.7 MB, free: 2.289 MB / 282.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.001978/0.1505, allocations: 1.407 MB / 336.1 MB, free: 0.957 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.558e-05/0.1505, allocations: 15.98 kB / 336.1 MB, free: 0.9414 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.993e-05/0.1505, allocations: 16 kB / 336.2 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001099/0.1516, allocations: 0.5653 MB / 336.7 MB, free: 340 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000566/0.1522, allocations: 323.7 kB / 337 MB, free: 40 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0068/0.159, allocations: 15.29 MB / 352.3 MB, free: 15.9 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005044/0.1595, allocations: 55.95 kB / 352.4 MB, free: 15.85 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.683e-05/0.1596, allocations: 63.98 kB / 352.5 MB, free: 15.79 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%), (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.0003663/0.16, allocations: 228.1 kB / 352.7 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001963/0.1601, allocations: 175.8 kB / 352.8 MB, free: 15.4 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001234/0.1614, allocations: 1.112 MB / 354 MB, free: 14.27 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.1614, allocations: 12 kB / 354 MB, free: 14.25 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.1614, allocations: 8 kB / 354 MB, free: 14.25 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.957e-06/0.1614, allocations: 7.969 kB / 354 MB, free: 14.24 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003608/0.165, allocations: 3.171 MB / 357.2 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.237e-06/0.165, allocations: 7.984 kB / 357.2 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005432/0.1656, allocations: 178.2 kB / 357.3 MB, free: 11.19 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001373/0.1669, allocations: 0.5571 MB / 357.9 MB, free: 10.61 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002331/0.1672, allocations: 43.55 kB / 357.9 MB, free: 10.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007829/0.175, allocations: 13.21 MB / 371.1 MB, free: 12.56 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.175, allocations: 7.719 kB / 371.2 MB, free: 12.56 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002618/0.1776, allocations: 1.554 MB / 372.7 MB, free: 10.95 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005389/0.1782, allocations: 266.5 kB / 373 MB, free: 10.69 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002209/0.1784, allocations: 28 kB / 373 MB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000689/0.1791, allocations: 75.95 kB / 373.1 MB, free: 10.59 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002559/0.1793, allocations: 136 kB / 373.2 MB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.957e-05/0.1794, allocations: 35.98 kB / 373.2 MB, free: 10.43 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008406/0.1803, allocations: 0.6667 MB / 373.9 MB, free: 9.844 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1803, allocations: 0 / 373.9 MB, free: 9.844 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002043/0.1823, allocations: 0.6523 MB / 374.6 MB, free: 9.191 MB / 330.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.0002516/0.1826, allocations: 191.9 kB / 374.7 MB, free: 9.012 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001586/0.1841, allocations: 2.198 MB / 376.9 MB, free: 6.762 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.848e-05/0.1842, allocations: 25.81 kB / 377 MB, free: 6.734 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009202/0.1851, allocations: 1.655 MB / 378.6 MB, free: 5.004 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001255/0.1863, allocations: 0.6227 MB / 379.2 MB, free: 4.402 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005123/0.1915, allocations: 4.741 MB / 384 MB, free: 15.62 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005428/0.192, allocations: 0.685 MB / 384.7 MB, free: 14.91 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005152/0.1925, allocations: 261.7 kB / 384.9 MB, free: 14.65 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008915/0.1934, allocations: 0.5654 MB / 385.5 MB, free: 14.08 MB / 346.7 MB Notification: Performance of SimCode: time 7.82e-07/0.1934, allocations: 4 kB / 385.5 MB, free: 14.07 MB / 346.7 MB Notification: Performance of Templates: time 0.04327/0.2367, allocations: 40.13 MB / 425.6 MB, free: 6.719 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.484824029263109]