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.0009865/0.0009865, allocations: 88.86 kB / 21.5 MB, free: 2.988 MB / 18.57 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.00107/0.00107, allocations: 160.9 kB / 24.91 MB, free: 8.719 MB / 18.57 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.9479/0.9479, allocations: 177 MB / 205.2 MB, free: 5.02 MB / 186.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.873e-06/1.873e-06, allocations: 0 / 273.4 MB, free: 1.039 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.345e-05/1.532e-05, allocations: 5.266 kB / 273.4 MB, free: 1.035 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01008/0.01009, allocations: 11.06 MB / 284.5 MB, free: 5.918 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003794/0.01389, allocations: 3.66 MB / 288.1 MB, free: 2.242 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004748/0.01436, allocations: 87.44 kB / 288.2 MB, free: 2.156 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001043/0.01541, allocations: 0.8538 MB / 289.1 MB, free: 1.297 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001119/0.01652, allocations: 1.02 MB / 290.1 MB, free: 276 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.09498/0.1115, allocations: 441.2 kB / 290.5 MB, free: 16.25 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003622/0.1151, allocations: 3.897 MB / 294.4 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001776/0.1169, allocations: 1.582 MB / 296 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003084/0.12, allocations: 2.553 MB / 298.5 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002426/0.1224, allocations: 1.866 MB / 300.4 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009927/0.1234, allocations: 412.4 kB / 300.8 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009391/0.1243, allocations: 0.4922 MB / 301.3 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007635/0.1251, allocations: 1.237 MB / 302.5 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001558/0.1267, allocations: 1.348 MB / 303.9 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00211/0.1288, allocations: 3.149 MB / 307 MB, free: 11.79 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.1288, allocations: 0.5 kB / 307 MB, free: 11.79 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1288, allocations: 1.438 kB / 307 MB, free: 11.79 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.617e-05/0.1288, allocations: 0 / 307 MB, free: 11.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.002995/0.1318, allocations: 3.581 MB / 310.6 MB, free: 9.777 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.787e-05/0.1318, allocations: 11.98 kB / 310.6 MB, free: 9.766 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006232/0.1325, allocations: 0.5073 MB / 311.1 MB, free: 9.262 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001313/0.1338, allocations: 1.374 MB / 312.5 MB, free: 7.938 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.055e-05/0.1338, allocations: 212.3 kB / 312.7 MB, free: 7.73 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002183/0.1341, allocations: 298.3 kB / 313 MB, free: 7.445 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001692/0.1358, allocations: 2.372 MB / 315.4 MB, free: 5.031 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.663e-05/0.1358, allocations: 11.23 kB / 315.4 MB, free: 5.023 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001533/0.136, allocations: 119.9 kB / 315.5 MB, free: 4.906 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.489e-05/0.136, allocations: 121.5 kB / 315.6 MB, free: 4.785 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00102/0.137, allocations: 0.8508 MB / 316.5 MB, free: 3.922 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006529/0.1436, allocations: 7.719 MB / 324.2 MB, free: 12.51 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008721/0.1444, allocations: 0.9748 MB / 325.2 MB, free: 11.57 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006618/0.1451, allocations: 0.5674 MB / 325.7 MB, free: 11.02 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001188/0.1452, allocations: 45.3 kB / 325.8 MB, free: 10.98 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.821e-05/0.1453, allocations: 51.88 kB / 325.8 MB, free: 10.92 MB / 282.7 MB Notification: Performance of pre-optimization done (n=136): time 2.355e-06/0.1453, allocations: 0 / 325.8 MB, free: 10.92 MB / 282.7 MB Notification: Performance of matching and sorting (n=151): time 0.004655/0.1499, allocations: 3.094 MB / 328.9 MB, free: 7.84 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.181e-05/0.1499, allocations: 68.66 kB / 329 MB, free: 7.758 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008916/0.1508, allocations: 1.347 MB / 330.4 MB, free: 6.668 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.179e-05/0.1509, allocations: 53.7 kB / 330.4 MB, free: 6.609 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004499/0.1514, allocations: 1.165 MB / 331.6 MB, free: 5.516 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002489/0.1516, allocations: 0.5349 MB / 332.1 MB, free: 5.012 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002998/0.1519, allocations: 324.6 kB / 332.4 MB, free: 4.727 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.183e-05/0.152, allocations: 312.3 kB / 332.7 MB, free: 4.422 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002884/0.1523, allocations: 206.8 kB / 332.9 MB, free: 4.219 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004665/0.1527, allocations: 0.6891 MB / 333.6 MB, free: 3.375 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008521/0.1536, allocations: 1.086 MB / 334.7 MB, free: 2.184 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.1536, allocations: 4 kB / 334.7 MB, free: 2.18 MB / 282.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00165/0.1552, allocations: 1.417 MB / 336.1 MB, free: 0.8398 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.1552, allocations: 13.41 kB / 336.1 MB, free: 0.8281 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.433e-05/0.1553, allocations: 18.94 kB / 336.2 MB, free: 0.8125 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001107/0.1564, allocations: 0.5699 MB / 336.7 MB, free: 216 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005826/0.157, allocations: 320.6 kB / 337 MB, free: 15.92 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007113/0.1641, allocations: 15.3 MB / 352.3 MB, free: 15.78 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005223/0.1646, allocations: 55.98 kB / 352.4 MB, free: 15.72 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.787e-05/0.1647, allocations: 60 kB / 352.4 MB, free: 15.66 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.0003927/0.1651, allocations: 224.2 kB / 352.7 MB, free: 15.46 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000206/0.1653, allocations: 179.8 kB / 352.8 MB, free: 15.28 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0015/0.1668, allocations: 1.11 MB / 354 MB, free: 14.14 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.135e-06/0.1668, allocations: 20.11 kB / 354 MB, free: 14.12 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.1668, allocations: 11.94 kB / 354 MB, free: 14.11 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.1668, allocations: 7.969 kB / 354 MB, free: 14.1 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003222/0.17, allocations: 3.165 MB / 357.2 MB, free: 11.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.17, allocations: 4.469 kB / 357.2 MB, free: 11.22 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003752/0.1704, allocations: 194.1 kB / 357.3 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009516/0.1713, allocations: 0.5461 MB / 357.9 MB, free: 10.47 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.538e-05/0.1714, allocations: 35.98 kB / 357.9 MB, free: 10.44 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006067/0.1775, allocations: 13.22 MB / 371.2 MB, free: 12.43 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.1775, allocations: 11.41 kB / 371.2 MB, free: 12.42 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001571/0.179, allocations: 1.556 MB / 372.7 MB, free: 10.81 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003552/0.1794, allocations: 254.6 kB / 373 MB, free: 10.56 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000142/0.1795, allocations: 31.98 kB / 373 MB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004273/0.18, allocations: 71.97 kB / 373.1 MB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001553/0.1801, allocations: 139.6 kB / 373.2 MB, free: 10.33 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.18e-05/0.1802, allocations: 32 kB / 373.2 MB, free: 10.3 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005056/0.1807, allocations: 0.677 MB / 373.9 MB, free: 9.711 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1807, allocations: 0 / 373.9 MB, free: 9.711 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001244/0.1819, allocations: 0.6484 MB / 374.6 MB, free: 9.062 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.0002404/0.1822, allocations: 181.6 kB / 374.7 MB, free: 8.891 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001782/0.1839, allocations: 2.2 MB / 376.9 MB, free: 6.641 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.863e-05/0.184, allocations: 29.88 kB / 377 MB, free: 6.609 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009137/0.1849, allocations: 1.65 MB / 378.6 MB, free: 4.883 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001264/0.1861, allocations: 0.6277 MB / 379.2 MB, free: 4.281 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004798/0.1909, allocations: 4.764 MB / 384 MB, free: 15.48 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005189/0.1915, allocations: 0.6851 MB / 384.7 MB, free: 14.77 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0004906/0.192, allocations: 249.8 kB / 384.9 MB, free: 14.52 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008806/0.1928, allocations: 0.5693 MB / 385.5 MB, free: 13.95 MB / 346.7 MB Notification: Performance of SimCode: time 6.41e-07/0.1928, allocations: 0 / 385.5 MB, free: 13.95 MB / 346.7 MB Notification: Performance of Templates: time 0.04198/0.2348, allocations: 40.12 MB / 425.6 MB, free: 6.496 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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.5116153839044273]