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.001396/0.001396, allocations: 88.73 kB / 21.5 MB, free: 2.984 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.001063/0.001063, allocations: 164.2 kB / 24.91 MB, free: 8.762 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 1.009/1.009, allocations: 177 MB / 205.2 MB, free: 5.043 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.623e-06/1.623e-06, allocations: 0 / 273.4 MB, free: 1.004 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.274e-05/2.437e-05, allocations: 2.312 kB / 273.4 MB, free: 1 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.009025/0.00905, allocations: 11.1 MB / 284.6 MB, free: 5.84 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00705/0.0161, allocations: 3.66 MB / 288.2 MB, free: 2.164 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002087/0.01819, allocations: 95.38 kB / 288.3 MB, free: 2.07 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00265/0.02084, allocations: 0.8538 MB / 289.2 MB, free: 1.211 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003386/0.02422, allocations: 1.017 MB / 290.2 MB, free: 192 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1268/0.151, allocations: 439.8 kB / 290.6 MB, free: 16.2 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004719/0.1557, allocations: 3.9 MB / 294.5 MB, free: 15.33 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00237/0.1581, allocations: 1.584 MB / 296.1 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004356/0.1624, allocations: 2.553 MB / 298.6 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003279/0.1657, allocations: 1.863 MB / 300.5 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001099/0.1668, allocations: 412.3 kB / 300.9 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001216/0.168, allocations: 0.5 MB / 301.4 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009205/0.169, allocations: 1.236 MB / 302.6 MB, free: 13.53 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00233/0.1713, allocations: 1.347 MB / 304 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003259/0.1745, allocations: 3.149 MB / 307.1 MB, free: 11.69 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.1746, allocations: 4 kB / 307.1 MB, free: 11.68 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1746, allocations: 0.5938 kB / 307.1 MB, free: 11.68 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.000168/0.1747, allocations: 3.281 kB / 307.1 MB, free: 11.68 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.004191/0.1789, allocations: 3.574 MB / 310.7 MB, free: 9.672 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.179, allocations: 15.98 kB / 310.7 MB, free: 9.656 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007617/0.1797, allocations: 0.5082 MB / 311.2 MB, free: 9.148 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001688/0.1814, allocations: 1.374 MB / 312.6 MB, free: 7.832 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.566e-05/0.1815, allocations: 217.1 kB / 312.8 MB, free: 7.621 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002265/0.1817, allocations: 284.3 kB / 313.1 MB, free: 7.344 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002095/0.1838, allocations: 2.371 MB / 315.5 MB, free: 4.93 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.546e-05/0.1839, allocations: 14.36 kB / 315.5 MB, free: 4.922 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001498/0.184, allocations: 123.9 kB / 315.6 MB, free: 4.801 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.499e-05/0.1841, allocations: 121.5 kB / 315.7 MB, free: 4.68 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001169/0.1852, allocations: 0.8483 MB / 316.6 MB, free: 3.816 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008406/0.1937, allocations: 7.726 MB / 324.3 MB, free: 12.4 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009794/0.1946, allocations: 0.9807 MB / 325.3 MB, free: 11.45 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006774/0.1953, allocations: 0.5524 MB / 325.8 MB, free: 10.91 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001398/0.1955, allocations: 57.72 kB / 325.9 MB, free: 10.87 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.396e-05/0.1955, allocations: 51.88 kB / 325.9 MB, free: 10.81 MB / 282.7 MB Notification: Performance of pre-optimization done (n=136): time 3.056e-06/0.1955, allocations: 0 / 325.9 MB, free: 10.81 MB / 282.7 MB Notification: Performance of matching and sorting (n=151): time 0.005625/0.2011, allocations: 3.093 MB / 329 MB, free: 7.734 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.881e-05/0.2012, allocations: 72.66 kB / 329.1 MB, free: 7.648 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001144/0.2023, allocations: 1.344 MB / 330.5 MB, free: 6.562 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.638e-05/0.2024, allocations: 49.7 kB / 330.5 MB, free: 6.508 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005171/0.2029, allocations: 1.167 MB / 331.7 MB, free: 5.41 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002986/0.2032, allocations: 0.5376 MB / 332.2 MB, free: 4.902 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003219/0.2035, allocations: 324.6 kB / 332.5 MB, free: 4.617 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.169e-05/0.2036, allocations: 304.8 kB / 332.8 MB, free: 4.32 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003177/0.2039, allocations: 218.5 kB / 333 MB, free: 4.109 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000497/0.2044, allocations: 0.6774 MB / 333.7 MB, free: 3.27 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009597/0.2054, allocations: 1.098 MB / 334.8 MB, free: 2.07 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.014e-05/0.2054, allocations: 4 kB / 334.8 MB, free: 2.066 MB / 282.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.001941/0.2073, allocations: 1.406 MB / 336.2 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.465e-05/0.2073, allocations: 13.25 kB / 336.2 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.21e-05/0.2074, allocations: 16.5 kB / 336.3 MB, free: 0.7109 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001232/0.2086, allocations: 0.5732 MB / 336.8 MB, free: 108 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006962/0.2093, allocations: 344 kB / 337.2 MB, free: 15.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007709/0.217, allocations: 15.32 MB / 352.5 MB, free: 15.63 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009417/0.2179, allocations: 56.11 kB / 352.5 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.158e-05/0.218, allocations: 59.94 kB / 352.6 MB, free: 15.52 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.0006102/0.2186, allocations: 236.1 kB / 352.8 MB, free: 15.3 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002548/0.2189, allocations: 183.8 kB / 353 MB, free: 15.12 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001374/0.2203, allocations: 1.106 MB / 354.1 MB, free: 13.98 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.736e-06/0.2203, allocations: 12 kB / 354.1 MB, free: 13.97 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.08e-05/0.2203, allocations: 8 kB / 354.1 MB, free: 13.96 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.628e-06/0.2203, allocations: 7.969 kB / 354.1 MB, free: 13.96 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00375/0.224, allocations: 3.169 MB / 357.3 MB, free: 11.08 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.451e-06/0.224, allocations: 4.094 kB / 357.3 MB, free: 11.08 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004607/0.2245, allocations: 204.5 kB / 357.5 MB, free: 10.89 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00107/0.2256, allocations: 0.5482 MB / 358.1 MB, free: 10.31 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.863e-05/0.2257, allocations: 35.98 kB / 358.1 MB, free: 10.28 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006366/0.232, allocations: 13.23 MB / 371.3 MB, free: 12.25 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.419e-06/0.232, allocations: 7.469 kB / 371.3 MB, free: 12.25 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001902/0.2339, allocations: 1.552 MB / 372.9 MB, free: 10.65 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004794/0.2344, allocations: 266.4 kB / 373.1 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001484/0.2346, allocations: 32.05 kB / 373.2 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004548/0.235, allocations: 79.94 kB / 373.2 MB, free: 10.28 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002359/0.2352, allocations: 132.7 kB / 373.4 MB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.81e-05/0.2353, allocations: 35.98 kB / 373.4 MB, free: 10.12 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006556/0.236, allocations: 0.6714 MB / 374.1 MB, free: 9.539 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.236, allocations: 0 / 374.1 MB, free: 9.539 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001723/0.2377, allocations: 0.6523 MB / 374.7 MB, free: 8.887 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.000311/0.238, allocations: 179.2 kB / 374.9 MB, free: 8.715 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00193/0.2399, allocations: 2.198 MB / 377.1 MB, free: 6.465 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.45e-05/0.24, allocations: 29.47 kB / 377.1 MB, free: 6.438 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001083/0.241, allocations: 1.658 MB / 378.8 MB, free: 4.703 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001414/0.2425, allocations: 0.6226 MB / 379.4 MB, free: 4.109 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006271/0.2487, allocations: 4.759 MB / 384.2 MB, free: 15.31 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006587/0.2494, allocations: 0.6968 MB / 384.9 MB, free: 14.59 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0007826/0.2502, allocations: 241.8 kB / 385.1 MB, free: 14.35 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009599/0.2511, allocations: 0.5684 MB / 385.7 MB, free: 13.78 MB / 346.7 MB Notification: Performance of SimCode: time 1.383e-06/0.2511, allocations: 0 / 385.7 MB, free: 13.78 MB / 346.7 MB Notification: Performance of Templates: time 0.04926/0.3004, allocations: 40.13 MB / 425.8 MB, free: 6.316 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 -s gbode -gbm=radauIIA3 -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.752077715937048]