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.001008/0.001008, allocations: 77.88 kB / 21.42 MB, free: 3.074 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.001095/0.001095, allocations: 167.6 kB / 24.82 MB, free: 9.266 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 0.9766/0.9766, allocations: 177.1 MB / 205.3 MB, free: 5.488 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 2.074e-06/2.074e-06, allocations: 0 / 273.4 MB, free: 1.266 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.86e-05/3.068e-05, allocations: 2.312 kB / 273.4 MB, free: 1.262 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01295/0.01299, allocations: 11.03 MB / 284.5 MB, free: 6.18 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006299/0.01928, allocations: 3.517 MB / 288 MB, free: 2.648 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001486/0.02077, allocations: 91.38 kB / 288.1 MB, free: 2.559 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001615/0.02239, allocations: 0.8383 MB / 288.9 MB, free: 1.715 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002035/0.02442, allocations: 1.02 MB / 289.9 MB, free: 0.6875 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007324/0.02515, allocations: 435.3 kB / 290.3 MB, free: 268 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1262/0.1514, allocations: 3.872 MB / 294.2 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001904/0.1533, allocations: 1.55 MB / 295.8 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003425/0.1567, allocations: 2.553 MB / 298.3 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002709/0.1594, allocations: 1.882 MB / 300.2 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000968/0.1604, allocations: 410.6 kB / 300.6 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001158/0.1615, allocations: 0.4883 MB / 301.1 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009106/0.1624, allocations: 1.244 MB / 302.3 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002104/0.1645, allocations: 1.338 MB / 303.7 MB, free: 13.17 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002993/0.1675, allocations: 3.154 MB / 306.8 MB, free: 11.9 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.1675, allocations: 0 / 306.8 MB, free: 11.9 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1675, allocations: 0 / 306.8 MB, free: 11.9 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001353/0.1677, allocations: 0.5938 kB / 306.8 MB, free: 11.9 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.004175/0.1718, allocations: 3.897 MB / 310.7 MB, free: 9.754 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.1719, allocations: 12.66 kB / 310.7 MB, free: 9.754 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007994/0.1727, allocations: 0.6384 MB / 311.4 MB, free: 9.203 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001632/0.1743, allocations: 1.783 MB / 313.2 MB, free: 7.504 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.607e-05/0.1744, allocations: 221.3 kB / 313.4 MB, free: 7.289 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002225/0.1746, allocations: 292.2 kB / 313.7 MB, free: 7.008 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002018/0.1766, allocations: 2.338 MB / 316 MB, free: 4.617 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.005e-05/0.1767, allocations: 7.75 kB / 316 MB, free: 4.613 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001464/0.1768, allocations: 119.9 kB / 316.1 MB, free: 4.496 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.94e-05/0.1769, allocations: 125.5 kB / 316.2 MB, free: 4.371 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001126/0.178, allocations: 0.8305 MB / 317.1 MB, free: 3.527 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008461/0.1865, allocations: 9.747 MB / 326.8 MB, free: 10.14 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009575/0.1874, allocations: 1.008 MB / 327.8 MB, free: 9.207 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000694/0.1881, allocations: 0.5975 MB / 328.4 MB, free: 8.629 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001328/0.1883, allocations: 45.3 kB / 328.5 MB, free: 8.586 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.359e-05/0.1883, allocations: 62.64 kB / 328.5 MB, free: 8.516 MB / 282.7 MB Notification: Performance of pre-optimization done (n=136): time 3.377e-06/0.1883, allocations: 0 / 328.5 MB, free: 8.516 MB / 282.7 MB Notification: Performance of matching and sorting (n=151): time 0.004782/0.1931, allocations: 3.127 MB / 331.7 MB, free: 5.395 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.164e-05/0.1931, allocations: 72.66 kB / 331.7 MB, free: 5.309 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001267/0.1944, allocations: 1.621 MB / 333.3 MB, free: 3.934 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.68e-05/0.1944, allocations: 53.7 kB / 333.4 MB, free: 3.875 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007347/0.1952, allocations: 1.526 MB / 334.9 MB, free: 2.414 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003012/0.1955, allocations: 0.5538 MB / 335.5 MB, free: 1.891 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003399/0.1958, allocations: 367.1 kB / 335.8 MB, free: 1.562 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.591e-05/0.1959, allocations: 483.6 kB / 336.3 MB, free: 1.09 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002847/0.1962, allocations: 211.1 kB / 336.5 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005847/0.1968, allocations: 0.9202 MB / 337.4 MB, free: 15.73 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001024/0.1978, allocations: 1.284 MB / 338.7 MB, free: 14.26 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.277e-06/0.1978, allocations: 4 kB / 338.7 MB, free: 14.26 MB / 298.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.002102/0.1999, allocations: 1.702 MB / 340.4 MB, free: 12.63 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.1999, allocations: 15.98 kB / 340.4 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.649e-05/0.2, allocations: 16 kB / 340.5 MB, free: 12.6 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001178/0.2011, allocations: 0.5832 MB / 341 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005923/0.2017, allocations: 323.4 kB / 341.4 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01027/0.212, allocations: 21.3 MB / 362.7 MB, free: 5.359 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001165/0.2132, allocations: 60.05 kB / 362.7 MB, free: 5.301 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001099/0.2133, allocations: 63.94 kB / 362.8 MB, free: 5.238 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.0007503/0.214, allocations: 277.4 kB / 363.1 MB, free: 4.98 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003499/0.2144, allocations: 262.7 kB / 363.3 MB, free: 4.723 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001918/0.2163, allocations: 1.268 MB / 364.6 MB, free: 3.43 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.026e-05/0.2163, allocations: 12 kB / 364.6 MB, free: 3.418 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.139e-05/0.2163, allocations: 8 kB / 364.6 MB, free: 3.41 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.214e-05/0.2163, allocations: 7.969 kB / 364.6 MB, free: 3.402 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005268/0.2216, allocations: 3.787 MB / 368.4 MB, free: 15.9 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/0.2216, allocations: 4.469 kB / 368.4 MB, free: 15.89 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000514/0.2221, allocations: 189.7 kB / 368.6 MB, free: 15.72 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001223/0.2233, allocations: 0.5011 MB / 369.1 MB, free: 15.19 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.937e-05/0.2234, allocations: 32 kB / 369.1 MB, free: 15.16 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009119/0.2325, allocations: 18.66 MB / 387.8 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.2325, allocations: 7.562 kB / 387.8 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002741/0.2353, allocations: 1.817 MB / 389.6 MB, free: 9.652 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006468/0.2359, allocations: 333.5 kB / 389.9 MB, free: 9.328 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001768/0.2361, allocations: 35.98 kB / 390 MB, free: 9.293 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006117/0.2367, allocations: 75.34 kB / 390 MB, free: 9.223 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002576/0.237, allocations: 128.4 kB / 390.2 MB, free: 9.102 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.898e-05/0.2371, allocations: 35.98 kB / 390.2 MB, free: 9.066 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000964/0.238, allocations: 0.8604 MB / 391.1 MB, free: 8.293 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.238, allocations: 0 / 391.1 MB, free: 8.293 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00205/0.2401, allocations: 0.6484 MB / 391.7 MB, free: 7.645 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.0003446/0.2404, allocations: 204.8 kB / 391.9 MB, free: 7.449 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002549/0.243, allocations: 2.887 MB / 394.8 MB, free: 4.461 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.243, allocations: 8 kB / 394.8 MB, free: 4.453 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001493/0.2445, allocations: 2.239 MB / 397 MB, free: 2.086 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001871/0.2463, allocations: 0.6254 MB / 397.7 MB, free: 1.484 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006889/0.2532, allocations: 4.875 MB / 402.5 MB, free: 12.55 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007653/0.254, allocations: 0.8014 MB / 403.3 MB, free: 11.73 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0007621/0.2547, allocations: 249.8 kB / 403.6 MB, free: 11.48 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001153/0.2559, allocations: 0.6501 MB / 404.2 MB, free: 10.83 MB / 362.7 MB Notification: Performance of SimCode: time 8.41e-07/0.2559, allocations: 0 / 404.2 MB, free: 10.83 MB / 362.7 MB Notification: Performance of Templates: time 0.1533/0.4092, allocations: 40.16 MB / 444.4 MB, free: 102.8 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.7333067771978676]