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.001122/0.001122, allocations: 78.28 kB / 21.42 MB, free: 3.078 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.001273/0.001273, allocations: 150.5 kB / 24.8 MB, free: 9.27 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 1.007/1.007, allocations: 173.3 MB / 201.4 MB, free: 9.234 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.365e-06/2.365e-06, allocations: 0 / 268.4 MB, free: 6.211 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.623e-05/2.859e-05, allocations: 6.312 kB / 268.4 MB, free: 6.203 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01086/0.01089, allocations: 11.01 MB / 279.4 MB, free: 11.14 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006012/0.0169, allocations: 3.486 MB / 282.9 MB, free: 7.641 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008278/0.01773, allocations: 83.44 kB / 283 MB, free: 7.559 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001715/0.01945, allocations: 0.8382 MB / 283.8 MB, free: 6.715 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001878/0.02132, allocations: 1.009 MB / 284.8 MB, free: 5.699 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006578/0.02198, allocations: 443.3 kB / 285.3 MB, free: 5.266 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002302/0.02428, allocations: 3.867 MB / 289.1 MB, free: 1.383 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.131/0.1553, allocations: 1.555 MB / 290.7 MB, free: 16.42 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004382/0.1597, allocations: 2.527 MB / 293.2 MB, free: 16.42 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002903/0.1626, allocations: 1.877 MB / 295.1 MB, free: 16.42 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001092/0.1637, allocations: 410.9 kB / 295.5 MB, free: 16.42 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001054/0.1647, allocations: 0.4933 MB / 296 MB, free: 16.42 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00112/0.1658, allocations: 1.242 MB / 297.2 MB, free: 16.42 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002212/0.1681, allocations: 1.343 MB / 298.6 MB, free: 16.42 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003051/0.1711, allocations: 3.154 MB / 301.7 MB, free: 16.01 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.965e-06/0.1711, allocations: 0.5 kB / 301.7 MB, free: 16.01 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.1711, allocations: 0.6875 kB / 301.7 MB, free: 16.01 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.109e-05/0.1712, allocations: 0 / 301.7 MB, free: 16.01 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.003786/0.1749, allocations: 3.892 MB / 305.6 MB, free: 13.87 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.175, allocations: 11.14 kB / 305.6 MB, free: 13.87 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000774/0.1758, allocations: 0.6433 MB / 306.3 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001638/0.1774, allocations: 1.774 MB / 308.1 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.683e-05/0.1775, allocations: 215.8 kB / 308.3 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002771/0.1778, allocations: 284.6 kB / 308.5 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002021/0.1798, allocations: 2.346 MB / 310.9 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.8e-05/0.1798, allocations: 10.52 kB / 310.9 MB, free: 11.4 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001631/0.18, allocations: 125.2 kB / 311 MB, free: 11.31 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.149e-05/0.1801, allocations: 119.7 kB / 311.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001098/0.1812, allocations: 0.8367 MB / 312 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007573/0.1888, allocations: 9.728 MB / 321.7 MB, free: 2.195 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008253/0.1896, allocations: 1.017 MB / 322.7 MB, free: 1.25 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006574/0.1902, allocations: 0.6001 MB / 323.3 MB, free: 0.6719 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001272/0.1904, allocations: 52.02 kB / 323.4 MB, free: 0.6211 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.506e-05/0.1904, allocations: 50.7 kB / 323.4 MB, free: 0.5625 MB / 266.7 MB Notification: Performance of pre-optimization done (n=136): time 2.375e-06/0.1904, allocations: 4 kB / 323.4 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of matching and sorting (n=151): time 0.005018/0.1954, allocations: 3.124 MB / 326.6 MB, free: 13.45 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.415e-05/0.1955, allocations: 72.66 kB / 326.6 MB, free: 13.36 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001415/0.1969, allocations: 1.612 MB / 328.2 MB, free: 12 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.003e-05/0.1969, allocations: 57.7 kB / 328.3 MB, free: 11.93 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007532/0.1977, allocations: 1.519 MB / 329.8 MB, free: 10.48 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000315/0.198, allocations: 0.5555 MB / 330.4 MB, free: 9.957 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003614/0.1984, allocations: 370.9 kB / 330.7 MB, free: 9.625 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.1985, allocations: 476.8 kB / 331.2 MB, free: 9.156 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003086/0.1988, allocations: 207.8 kB / 331.4 MB, free: 8.953 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006223/0.1994, allocations: 0.9244 MB / 332.3 MB, free: 7.789 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001041/0.2004, allocations: 1.285 MB / 333.6 MB, free: 6.324 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.586e-06/0.2005, allocations: 13 kB / 333.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.002091/0.2025, allocations: 1.692 MB / 335.3 MB, free: 4.691 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.622e-05/0.2026, allocations: 18.44 kB / 335.3 MB, free: 4.68 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.825e-05/0.2026, allocations: 16 kB / 335.3 MB, free: 4.664 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001197/0.2038, allocations: 0.5746 MB / 335.9 MB, free: 4.062 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005923/0.2044, allocations: 323.8 kB / 336.2 MB, free: 3.77 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01004/0.2144, allocations: 21.31 MB / 357.5 MB, free: 13.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008503/0.2153, allocations: 55.95 kB / 357.6 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.26e-05/0.2154, allocations: 60 kB / 357.7 MB, free: 13.32 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.0008084/0.2162, allocations: 280.9 kB / 357.9 MB, free: 13.06 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002671/0.2164, allocations: 262.7 kB / 358.2 MB, free: 12.8 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001523/0.218, allocations: 1.268 MB / 359.5 MB, free: 11.51 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.917e-06/0.218, allocations: 16 kB / 359.5 MB, free: 11.5 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.103e-05/0.218, allocations: 8 kB / 359.5 MB, free: 11.49 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/0.218, allocations: 11.91 kB / 359.5 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004634/0.2226, allocations: 3.784 MB / 363.3 MB, free: 7.961 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.612e-06/0.2226, allocations: 8 kB / 363.3 MB, free: 7.953 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004034/0.223, allocations: 185.6 kB / 363.5 MB, free: 7.785 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009833/0.224, allocations: 0.4915 MB / 364 MB, free: 7.266 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.122e-05/0.2241, allocations: 35.98 kB / 364 MB, free: 7.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0083/0.2324, allocations: 18.67 MB / 382.7 MB, free: 3.613 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.2324, allocations: 7.375 kB / 382.7 MB, free: 3.609 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002366/0.2348, allocations: 1.813 MB / 384.5 MB, free: 1.738 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005201/0.2353, allocations: 327.8 kB / 384.8 MB, free: 1.418 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001337/0.2354, allocations: 35.98 kB / 384.8 MB, free: 1.383 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004673/0.2359, allocations: 71.97 kB / 384.9 MB, free: 1.312 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002122/0.2361, allocations: 136.7 kB / 385 MB, free: 1.18 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.167e-05/0.2361, allocations: 32 kB / 385.1 MB, free: 1.148 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007682/0.2369, allocations: 0.8513 MB / 385.9 MB, free: 392 kB / 330.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2369, allocations: 0 / 385.9 MB, free: 392 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.001789/0.2387, allocations: 0.6523 MB / 386.6 MB, free: 15.73 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%), (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.0002864/0.239, allocations: 204.8 kB / 386.8 MB, free: 15.54 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001997/0.241, allocations: 2.895 MB / 389.7 MB, free: 12.54 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.241, allocations: 4 kB / 389.7 MB, free: 12.54 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001443/0.2424, allocations: 2.234 MB / 391.9 MB, free: 10.17 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001406/0.2438, allocations: 0.6146 MB / 392.5 MB, free: 9.57 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005836/0.2497, allocations: 4.866 MB / 397.4 MB, free: 4.637 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009216/0.2506, allocations: 0.7941 MB / 398.2 MB, free: 3.82 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0006074/0.2512, allocations: 257.7 kB / 398.4 MB, free: 3.566 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009576/0.2522, allocations: 0.6462 MB / 399.1 MB, free: 2.918 MB / 346.7 MB Notification: Performance of SimCode: time 8.92e-07/0.2522, allocations: 0 / 399.1 MB, free: 2.918 MB / 346.7 MB Notification: Performance of Templates: time 0.1636/0.4157, allocations: 40.03 MB / 439.1 MB, free: 111.1 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.768333496991545]