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.00128/0.00128, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.001041/0.001041, allocations: 140.3 kB / 24.89 MB, free: 9.207 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 0.8722/0.8722, allocations: 173.3 MB / 201.5 MB, free: 9.168 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 1.552e-06/1.552e-06, allocations: 0 / 268.5 MB, free: 6.164 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.195e-05/2.35e-05, allocations: 2.312 kB / 268.5 MB, free: 6.16 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01483/0.01485, allocations: 11.04 MB / 279.5 MB, free: 11.07 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0086/0.02345, allocations: 3.617 MB / 283.1 MB, free: 7.438 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001778/0.02523, allocations: 87.44 kB / 283.2 MB, free: 7.352 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002421/0.02765, allocations: 0.8383 MB / 284.1 MB, free: 6.508 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003246/0.0309, allocations: 1.017 MB / 285.1 MB, free: 5.484 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001155/0.03205, allocations: 443.3 kB / 285.5 MB, free: 5.051 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005144/0.0372, allocations: 3.878 MB / 289.4 MB, free: 1.16 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1214/0.1586, allocations: 1.579 MB / 291 MB, free: 16.23 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003309/0.1619, allocations: 2.529 MB / 293.5 MB, free: 16.23 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00249/0.1644, allocations: 1.858 MB / 295.3 MB, free: 16.23 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007436/0.1652, allocations: 411 kB / 295.8 MB, free: 16.23 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000781/0.166, allocations: 498.4 kB / 296.2 MB, free: 16.23 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008963/0.1669, allocations: 1.241 MB / 297.5 MB, free: 16.23 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00152/0.1684, allocations: 1.343 MB / 298.8 MB, free: 16.23 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002731/0.1711, allocations: 3.153 MB / 302 MB, free: 15.8 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1711, allocations: 1.719 kB / 302 MB, free: 15.8 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1711, allocations: 0.625 kB / 302 MB, free: 15.8 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.715e-05/0.1712, allocations: 0 / 302 MB, free: 15.8 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.003438/0.1746, allocations: 3.565 MB / 305.5 MB, free: 13.9 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.124e-05/0.1747, allocations: 10.2 kB / 305.6 MB, free: 13.9 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006854/0.1754, allocations: 0.5071 MB / 306.1 MB, free: 13.81 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001454/0.1768, allocations: 1.373 MB / 307.4 MB, free: 13.13 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.174e-05/0.1769, allocations: 218.9 kB / 307.6 MB, free: 13.03 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002295/0.1771, allocations: 287.6 kB / 307.9 MB, free: 12.94 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001794/0.1789, allocations: 2.368 MB / 310.3 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.752e-05/0.1789, allocations: 6.906 kB / 310.3 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001603/0.1791, allocations: 124.3 kB / 310.4 MB, free: 11.83 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.001e-05/0.1792, allocations: 120.1 kB / 310.5 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001071/0.1802, allocations: 0.8499 MB / 311.4 MB, free: 11.55 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006298/0.1865, allocations: 7.716 MB / 319.1 MB, free: 4.688 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007408/0.1873, allocations: 0.9822 MB / 320.1 MB, free: 3.734 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005767/0.1879, allocations: 0.562 MB / 320.6 MB, free: 3.191 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001169/0.188, allocations: 53.3 kB / 320.7 MB, free: 3.141 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.051e-05/0.188, allocations: 51.88 kB / 320.8 MB, free: 3.078 MB / 266.7 MB Notification: Performance of pre-optimization done (n=136): time 2.445e-06/0.188, allocations: 0 / 320.8 MB, free: 3.078 MB / 266.7 MB Notification: Performance of matching and sorting (n=151): time 0.004163/0.1922, allocations: 3.088 MB / 323.8 MB, free: 8 kB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.457e-05/0.1922, allocations: 72.66 kB / 323.9 MB, free: 15.93 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009094/0.1931, allocations: 1.344 MB / 325.3 MB, free: 14.84 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.771e-05/0.1932, allocations: 53.7 kB / 325.3 MB, free: 14.78 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004557/0.1936, allocations: 1.157 MB / 326.5 MB, free: 13.69 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002592/0.1939, allocations: 0.5314 MB / 327 MB, free: 13.19 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003051/0.1942, allocations: 333.8 kB / 327.3 MB, free: 12.9 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.145e-05/0.1943, allocations: 301.1 kB / 327.6 MB, free: 12.6 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002884/0.1946, allocations: 214.7 kB / 327.8 MB, free: 12.39 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004607/0.195, allocations: 0.6784 MB / 328.5 MB, free: 11.55 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008514/0.1959, allocations: 1.102 MB / 329.6 MB, free: 10.35 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.314e-06/0.1959, allocations: 4.875 kB / 329.6 MB, free: 10.34 MB / 282.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.001694/0.1976, allocations: 1.408 MB / 331 MB, free: 9.016 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.1976, allocations: 12 kB / 331 MB, free: 9.004 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.554e-05/0.1976, allocations: 16 kB / 331 MB, free: 8.988 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001151/0.1988, allocations: 0.5711 MB / 331.6 MB, free: 8.391 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005727/0.1993, allocations: 321.5 kB / 331.9 MB, free: 8.098 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006854/0.2062, allocations: 15.29 MB / 347.2 MB, free: 7.965 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005941/0.2068, allocations: 63.94 kB / 347.3 MB, free: 7.902 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.922e-05/0.2069, allocations: 60 kB / 347.3 MB, free: 7.844 MB / 298.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.0004621/0.2073, allocations: 228.6 kB / 347.6 MB, free: 7.633 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002076/0.2075, allocations: 171.8 kB / 347.7 MB, free: 7.465 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001283/0.2088, allocations: 1.113 MB / 348.8 MB, free: 6.332 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.915e-06/0.2088, allocations: 12 kB / 348.9 MB, free: 6.32 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.2088, allocations: 8 kB / 348.9 MB, free: 6.312 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.757e-06/0.2088, allocations: 7.969 kB / 348.9 MB, free: 6.305 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003412/0.2122, allocations: 3.171 MB / 352 MB, free: 3.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.602e-06/0.2123, allocations: 8 kB / 352.1 MB, free: 3.422 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003843/0.2126, allocations: 185.5 kB / 352.2 MB, free: 3.254 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001103/0.2137, allocations: 0.5475 MB / 352.8 MB, free: 2.676 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.888e-05/0.2138, allocations: 31.98 kB / 352.8 MB, free: 2.645 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00593/0.2197, allocations: 13.23 MB / 366 MB, free: 4.625 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.2197, allocations: 7 kB / 366 MB, free: 4.621 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001572/0.2213, allocations: 1.558 MB / 367.6 MB, free: 3.012 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003644/0.2217, allocations: 256.8 kB / 367.9 MB, free: 2.762 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001464/0.2218, allocations: 35.98 kB / 367.9 MB, free: 2.727 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004224/0.2222, allocations: 71.97 kB / 368 MB, free: 2.656 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001943/0.2224, allocations: 140.9 kB / 368.1 MB, free: 2.523 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.051e-05/0.2225, allocations: 28 kB / 368.1 MB, free: 2.496 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005132/0.223, allocations: 0.67 MB / 368.8 MB, free: 1.91 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.223, allocations: 0 / 368.8 MB, free: 1.91 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00135/0.2244, allocations: 0.6484 MB / 369.4 MB, free: 1.262 MB / 314.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.0002484/0.2246, allocations: 189.7 kB / 369.6 MB, free: 1.078 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001879/0.2265, allocations: 2.194 MB / 371.8 MB, free: 14.83 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.76e-05/0.2265, allocations: 26.31 kB / 371.9 MB, free: 14.81 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009294/0.2274, allocations: 1.651 MB / 373.5 MB, free: 13.08 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001304/0.2287, allocations: 0.615 MB / 374.1 MB, free: 12.48 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005185/0.2339, allocations: 4.742 MB / 378.9 MB, free: 7.691 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005526/0.2345, allocations: 0.6887 MB / 379.5 MB, free: 6.98 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005253/0.235, allocations: 249.7 kB / 379.8 MB, free: 6.734 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008747/0.2359, allocations: 0.5693 MB / 380.4 MB, free: 6.156 MB / 330.7 MB Notification: Performance of SimCode: time 6.01e-07/0.2359, allocations: 0 / 380.4 MB, free: 6.156 MB / 330.7 MB Notification: Performance of Templates: time 0.04328/0.2792, allocations: 40.01 MB / 420.4 MB, free: 14.89 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.4374803719110787]