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.0009688/0.0009688, allocations: 71.77 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.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.001037/0.001037, allocations: 163.6 kB / 24.99 MB, free: 8.746 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 1.012/1.012, allocations: 177.1 MB / 205.3 MB, free: 5.633 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.684e-06/1.684e-06, allocations: 0 / 273.1 MB, free: 1.824 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.721e-05/2.89e-05, allocations: 2.312 kB / 273.1 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.009524/0.009553, allocations: 11.32 MB / 284.4 MB, free: 6.453 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005872/0.01542, allocations: 3.533 MB / 287.9 MB, free: 2.906 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001263/0.01669, allocations: 87.44 kB / 288 MB, free: 2.82 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001913/0.0186, allocations: 0.8421 MB / 288.9 MB, free: 1.973 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002395/0.021, allocations: 1.009 MB / 289.9 MB, free: 0.957 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008365/0.02183, allocations: 447.2 kB / 290.3 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1232/0.1451, allocations: 3.86 MB / 294.2 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00175/0.1468, allocations: 1.552 MB / 295.7 MB, free: 15.03 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002558/0.1494, allocations: 2.485 MB / 298.2 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002179/0.1516, allocations: 1.901 MB / 300.1 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006666/0.1522, allocations: 419 kB / 300.5 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000731/0.153, allocations: 0.4959 MB / 301 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007602/0.1537, allocations: 1.264 MB / 302.3 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001187/0.1549, allocations: 1.356 MB / 303.6 MB, free: 13.19 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002049/0.157, allocations: 3.185 MB / 306.8 MB, free: 11.91 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.157, allocations: 0 / 306.8 MB, free: 11.91 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.157, allocations: 0 / 306.8 MB, free: 11.91 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.447e-05/0.157, allocations: 0 / 306.8 MB, free: 11.91 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.003376/0.1604, allocations: 4.038 MB / 310.8 MB, free: 9.59 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.1604, allocations: 14.19 kB / 310.9 MB, free: 9.59 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007479/0.1612, allocations: 0.6349 MB / 311.5 MB, free: 9.293 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001626/0.1628, allocations: 1.903 MB / 313.4 MB, free: 7.461 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.385e-05/0.1629, allocations: 214.1 kB / 313.6 MB, free: 7.25 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002132/0.1631, allocations: 289.5 kB / 313.9 MB, free: 6.973 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002355/0.1655, allocations: 2.528 MB / 316.4 MB, free: 4.277 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.946e-05/0.1655, allocations: 15.22 kB / 316.4 MB, free: 4.266 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000154/0.1657, allocations: 119.9 kB / 316.5 MB, free: 4.148 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.49e-05/0.1657, allocations: 121.5 kB / 316.7 MB, free: 4.027 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00185/0.1676, allocations: 1.075 MB / 317.7 MB, free: 2.953 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008658/0.1762, allocations: 9.976 MB / 327.7 MB, free: 8.926 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001165/0.1774, allocations: 1.071 MB / 328.8 MB, free: 7.906 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008896/0.1783, allocations: 0.663 MB / 329.5 MB, free: 7.246 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000149/0.1784, allocations: 57.27 kB / 329.5 MB, free: 7.191 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.255e-05/0.1785, allocations: 50.7 kB / 329.6 MB, free: 7.133 MB / 282.7 MB Notification: Performance of pre-optimization done (n=136): time 2.645e-06/0.1785, allocations: 6.078 kB / 329.6 MB, free: 7.129 MB / 282.7 MB Notification: Performance of matching and sorting (n=151): time 0.005749/0.1842, allocations: 3.878 MB / 333.4 MB, free: 3.23 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.185e-05/0.1843, allocations: 68.72 kB / 333.5 MB, free: 3.148 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001525/0.1858, allocations: 1.672 MB / 335.2 MB, free: 1.469 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.852e-05/0.1859, allocations: 49.7 kB / 335.2 MB, free: 1.414 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007263/0.1866, allocations: 1.512 MB / 336.7 MB, free: 15.89 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002944/0.1869, allocations: 0.5471 MB / 337.3 MB, free: 15.35 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003602/0.1872, allocations: 367.5 kB / 337.6 MB, free: 14.98 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.1874, allocations: 484.7 kB / 338.1 MB, free: 14.51 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004913/0.1879, allocations: 271.8 kB / 338.4 MB, free: 14.24 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008077/0.1887, allocations: 0.9783 MB / 339.4 MB, free: 12.99 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001329/0.19, allocations: 1.399 MB / 340.8 MB, free: 11.37 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.195e-06/0.19, allocations: 6.938 kB / 340.8 MB, free: 11.37 MB / 298.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.002523/0.1925, allocations: 1.86 MB / 342.6 MB, free: 9.57 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.141e-05/0.1925, allocations: 16.48 kB / 342.6 MB, free: 9.555 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.582e-05/0.1926, allocations: 20 kB / 342.7 MB, free: 9.535 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001371/0.1939, allocations: 0.6195 MB / 343.3 MB, free: 8.879 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006633/0.1946, allocations: 349 kB / 343.6 MB, free: 8.562 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009408/0.204, allocations: 21.79 MB / 365.4 MB, free: 1.535 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006247/0.2046, allocations: 95.83 kB / 365.5 MB, free: 1.441 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.281e-05/0.2047, allocations: 83.98 kB / 365.6 MB, free: 1.359 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.000489/0.2052, allocations: 276.1 kB / 365.9 MB, free: 1.105 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002507/0.2055, allocations: 254.7 kB / 366.1 MB, free: 0.8555 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001812/0.2073, allocations: 1.406 MB / 367.5 MB, free: 15.42 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.969e-06/0.2073, allocations: 19.94 kB / 367.5 MB, free: 15.4 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.317e-06/0.2073, allocations: 8 kB / 367.5 MB, free: 15.39 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.487e-06/0.2073, allocations: 7.969 kB / 367.5 MB, free: 15.38 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00462/0.2119, allocations: 3.96 MB / 371.5 MB, free: 11.34 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.291e-06/0.2119, allocations: 4 kB / 371.5 MB, free: 11.34 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004166/0.2123, allocations: 198.3 kB / 371.7 MB, free: 11.15 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001083/0.2134, allocations: 0.531 MB / 372.2 MB, free: 10.59 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.579e-05/0.2135, allocations: 39.98 kB / 372.3 MB, free: 10.55 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008452/0.2219, allocations: 19.09 MB / 391.4 MB, free: 6.324 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.2219, allocations: 4 kB / 391.4 MB, free: 6.32 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002326/0.2243, allocations: 1.998 MB / 393.4 MB, free: 4.23 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004894/0.2248, allocations: 370.5 kB / 393.7 MB, free: 3.867 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001485/0.2249, allocations: 36 kB / 393.8 MB, free: 3.832 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005084/0.2254, allocations: 107.9 kB / 393.9 MB, free: 3.727 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002319/0.2257, allocations: 132 kB / 394 MB, free: 3.602 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.691e-05/0.2257, allocations: 51.98 kB / 394 MB, free: 3.551 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001215/0.2269, allocations: 0.9353 MB / 395 MB, free: 2.625 MB / 346.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2269, allocations: 0 / 395 MB, free: 2.625 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001744/0.2287, allocations: 0.6562 MB / 395.6 MB, free: 1.969 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.0002879/0.229, allocations: 202.1 kB / 395.8 MB, free: 1.773 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002328/0.2313, allocations: 3.028 MB / 398.9 MB, free: 14.61 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.2313, allocations: 4 kB / 398.9 MB, free: 14.61 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001345/0.2326, allocations: 2.319 MB / 401.2 MB, free: 12.14 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00171/0.2343, allocations: 0.6261 MB / 401.8 MB, free: 11.54 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005925/0.2403, allocations: 4.924 MB / 406.7 MB, free: 6.523 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006336/0.2409, allocations: 0.7943 MB / 407.5 MB, free: 5.707 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0007107/0.2416, allocations: 393.5 kB / 407.9 MB, free: 5.32 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002292/0.2418, allocations: 128.5 kB / 408 MB, free: 5.195 MB / 362.7 MB Notification: Performance of SimCode: time 1.313e-06/0.2418, allocations: 0 / 408 MB, free: 5.195 MB / 362.7 MB Notification: Performance of Templates: time 0.1504/0.3923, allocations: 38.24 MB / 446.3 MB, free: 113.5 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.7205670529510826]