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.0009236/0.0009236, allocations: 84.34 kB / 22.21 MB, free: 2.285 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.0009574/0.0009574, allocations: 166.8 kB / 25.61 MB, free: 8.582 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 0.9098/0.9098, allocations: 177 MB / 205.9 MB, free: 4.469 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.363e-06/1.363e-06, allocations: 3.938 kB / 274.1 MB, free: 4.273 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.227e-05/1.364e-05, allocations: 2.938 kB / 274.1 MB, free: 4.27 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.008963/0.008977, allocations: 11.06 MB / 285.2 MB, free: 9.172 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005509/0.01449, allocations: 3.526 MB / 288.7 MB, free: 5.637 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001009/0.01549, allocations: 91.38 kB / 288.8 MB, free: 5.547 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001274/0.01677, allocations: 0.8343 MB / 289.6 MB, free: 4.707 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001456/0.01822, allocations: 1.017 MB / 290.7 MB, free: 3.684 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005223/0.01875, allocations: 447.2 kB / 291.1 MB, free: 3.246 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002423/0.02117, allocations: 3.887 MB / 295 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001338/0.02251, allocations: 1.557 MB / 296.5 MB, free: 13.72 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00194/0.02445, allocations: 2.557 MB / 299.1 MB, free: 11.16 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001551/0.026, allocations: 1.886 MB / 301 MB, free: 9.266 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004138/0.02641, allocations: 416 kB / 301.4 MB, free: 8.859 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005527/0.02696, allocations: 491.8 kB / 301.9 MB, free: 8.379 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007211/0.02769, allocations: 1.243 MB / 303.1 MB, free: 7.133 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001059/0.02874, allocations: 1.349 MB / 304.5 MB, free: 5.781 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002195/0.03094, allocations: 3.15 MB / 307.6 MB, free: 2.621 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.03094, allocations: 0 / 307.6 MB, free: 2.621 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.03094, allocations: 4 kB / 307.6 MB, free: 2.617 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.408e-05/0.03099, allocations: 0 / 307.6 MB, free: 2.617 MB / 282.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.003875/0.03486, allocations: 3.899 MB / 311.5 MB, free: 14.65 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.94e-05/0.03489, allocations: 8.031 kB / 311.5 MB, free: 14.64 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008048/0.0357, allocations: 0.6431 MB / 312.2 MB, free: 14 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001787/0.03748, allocations: 1.789 MB / 314 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001124/0.0376, allocations: 218.1 kB / 314.2 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002732/0.03787, allocations: 292.3 kB / 314.5 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002221/0.04009, allocations: 2.346 MB / 316.8 MB, free: 9.141 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.222e-05/0.04014, allocations: 7.984 kB / 316.8 MB, free: 9.133 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000163/0.04031, allocations: 112 kB / 316.9 MB, free: 9.023 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.313e-05/0.04039, allocations: 121.5 kB / 317 MB, free: 8.902 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001203/0.04159, allocations: 0.8319 MB / 317.9 MB, free: 8.043 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008792/0.05038, allocations: 9.753 MB / 327.6 MB, free: 13.96 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001018/0.0514, allocations: 1.001 MB / 328.6 MB, free: 13 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000794/0.0522, allocations: 0.5874 MB / 329.2 MB, free: 12.41 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001373/0.05233, allocations: 53.28 kB / 329.3 MB, free: 12.36 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.332e-05/0.05237, allocations: 54.7 kB / 329.3 MB, free: 12.3 MB / 314.7 MB Notification: Performance of pre-optimization done (n=136): time 2.535e-06/0.05237, allocations: 0 / 329.3 MB, free: 12.3 MB / 314.7 MB Notification: Performance of matching and sorting (n=151): time 0.004763/0.05713, allocations: 3.135 MB / 332.4 MB, free: 9.102 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.425e-05/0.05717, allocations: 68.72 kB / 332.5 MB, free: 9.02 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001231/0.0584, allocations: 1.625 MB / 334.1 MB, free: 7.387 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.805e-05/0.05847, allocations: 53.7 kB / 334.2 MB, free: 7.328 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007301/0.0592, allocations: 1.525 MB / 335.7 MB, free: 5.785 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003001/0.0595, allocations: 0.554 MB / 336.3 MB, free: 5.227 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000388/0.05988, allocations: 372.9 kB / 336.6 MB, free: 4.852 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.06, allocations: 476.8 kB / 337.1 MB, free: 4.383 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003114/0.06031, allocations: 211.8 kB / 337.3 MB, free: 4.176 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006415/0.06095, allocations: 0.9207 MB / 338.2 MB, free: 2.969 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00105/0.062, allocations: 1.284 MB / 339.5 MB, free: 1.402 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.034e-06/0.06201, allocations: 4 kB / 339.5 MB, free: 1.398 MB / 314.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.002108/0.06412, allocations: 1.707 MB / 341.2 MB, free: 15.63 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.304e-05/0.06414, allocations: 12 kB / 341.2 MB, free: 15.62 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.437e-05/0.06416, allocations: 12 kB / 341.2 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001193/0.06535, allocations: 0.5742 MB / 341.8 MB, free: 14.99 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006174/0.06597, allocations: 323.5 kB / 342.1 MB, free: 14.67 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1211/0.1871, allocations: 21.29 MB / 363.4 MB, free: 68.77 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00116/0.1883, allocations: 61.3 kB / 363.5 MB, free: 68.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001148/0.1884, allocations: 65.53 kB / 363.6 MB, free: 68.76 MB / 330.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.0006493/0.189, allocations: 277.5 kB / 363.8 MB, free: 68.6 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00033/0.1894, allocations: 265.5 kB / 364.1 MB, free: 68.6 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002/0.1914, allocations: 1.266 MB / 365.4 MB, free: 68.38 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.219e-05/0.1914, allocations: 16.19 kB / 365.4 MB, free: 68.38 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.382e-05/0.1914, allocations: 10.88 kB / 365.4 MB, free: 68.38 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.315e-05/0.1914, allocations: 7.172 kB / 365.4 MB, free: 68.38 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005087/0.1965, allocations: 3.784 MB / 369.2 MB, free: 67.58 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.566e-06/0.1965, allocations: 4.594 kB / 369.2 MB, free: 67.58 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005039/0.197, allocations: 184.6 kB / 369.4 MB, free: 67.58 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001161/0.1982, allocations: 497 kB / 369.8 MB, free: 67.46 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.404e-05/0.1982, allocations: 39.78 kB / 369.9 MB, free: 67.46 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005033/0.2033, allocations: 18.66 MB / 388.5 MB, free: 50.09 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.2033, allocations: 7.312 kB / 388.5 MB, free: 50.09 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001649/0.2049, allocations: 1.816 MB / 390.4 MB, free: 49.43 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003603/0.2053, allocations: 328.3 kB / 390.7 MB, free: 49.32 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001451/0.2054, allocations: 39.44 kB / 390.7 MB, free: 49.32 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004693/0.2059, allocations: 67.34 kB / 390.8 MB, free: 49.32 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001728/0.2061, allocations: 135.8 kB / 390.9 MB, free: 49.31 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.93e-05/0.2061, allocations: 37 kB / 391 MB, free: 49.31 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005623/0.2067, allocations: 0.8558 MB / 391.8 MB, free: 49.16 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2067, allocations: 0 / 391.8 MB, free: 49.16 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001392/0.2081, allocations: 0.6532 MB / 392.5 MB, free: 49.16 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.0002383/0.2083, allocations: 207.7 kB / 392.7 MB, free: 49.07 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001541/0.2099, allocations: 2.885 MB / 395.6 MB, free: 47 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.2099, allocations: 3.562 kB / 395.6 MB, free: 47 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008878/0.2108, allocations: 2.244 MB / 397.8 MB, free: 45.09 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001395/0.2121, allocations: 0.6217 MB / 398.4 MB, free: 44.58 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004797/0.2169, allocations: 4.881 MB / 403.3 MB, free: 40.06 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005086/0.2175, allocations: 0.7963 MB / 404.1 MB, free: 39.33 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005358/0.218, allocations: 249.8 kB / 404.3 MB, free: 39.09 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008502/0.2188, allocations: 0.654 MB / 405 MB, free: 38.43 MB / 330.7 MB Notification: Performance of SimCode: time 8.72e-07/0.2188, allocations: 3.719 kB / 405 MB, free: 38.43 MB / 330.7 MB Notification: Performance of Templates: time 0.04036/0.2592, allocations: 40.85 MB / 445.9 MB, free: 14.15 MB / 346.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 -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.6423669583164155]