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.001414/0.001414, allocations: 92.33 kB / 20.95 MB, free: 3.586 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.001792/0.001792, allocations: 165.2 kB / 24.27 MB, free: 280 kB / 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.489/1.489, allocations: 177.1 MB / 204.6 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] 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.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|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.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|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.633e-06/1.633e-06, allocations: 0 / 272.3 MB, free: 1.816 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.037e-05/3.2e-05, allocations: 6.312 kB / 272.3 MB, free: 1.809 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.0141/0.01414, allocations: 10.06 MB / 282.4 MB, free: 7.699 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007549/0.02168, allocations: 3.423 MB / 285.8 MB, free: 4.258 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001903/0.02359, allocations: 83.44 kB / 285.9 MB, free: 4.176 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002656/0.02624, allocations: 0.8382 MB / 286.7 MB, free: 3.332 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00285/0.02909, allocations: 1.02 MB / 287.8 MB, free: 2.305 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009801/0.03007, allocations: 443.3 kB / 288.2 MB, free: 1.871 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1742/0.2043, allocations: 3.873 MB / 292.1 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004129/0.2085, allocations: 1.545 MB / 293.6 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006212/0.2147, allocations: 2.464 MB / 296.1 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004881/0.2195, allocations: 1.745 MB / 297.8 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001744/0.2213, allocations: 419.4 kB / 298.2 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002739/0.224, allocations: 0.4994 MB / 298.7 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002506/0.2265, allocations: 1.253 MB / 300 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00442/0.231, allocations: 1.334 MB / 301.3 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009547/0.2405, allocations: 5.638 MB / 307 MB, free: 11.05 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.2405, allocations: 4.938 kB / 307 MB, free: 11.05 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2405, allocations: 0 / 307 MB, free: 11.05 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001844/0.2407, allocations: 3.469 kB / 307 MB, free: 11.05 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.008706/0.2494, allocations: 3.79 MB / 310.8 MB, free: 8.516 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.2494, allocations: 14.03 kB / 310.8 MB, free: 8.512 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0015/0.2509, allocations: 0.6359 MB / 311.4 MB, free: 8.215 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0033/0.2542, allocations: 2.08 MB / 313.5 MB, free: 6.527 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001174/0.2543, allocations: 214.1 kB / 313.7 MB, free: 6.316 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004565/0.2548, allocations: 296.3 kB / 314 MB, free: 6.027 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005959/0.2608, allocations: 4.158 MB / 318.1 MB, free: 1.719 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.657e-05/0.2609, allocations: 11.8 kB / 318.2 MB, free: 1.711 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003113/0.2612, allocations: 127 kB / 318.3 MB, free: 1.59 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.316e-05/0.2613, allocations: 121.5 kB / 318.4 MB, free: 1.469 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005833/0.2671, allocations: 3.241 MB / 321.6 MB, free: 14.23 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02359/0.2907, allocations: 10.52 MB / 332.2 MB, free: 3.68 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003175/0.2939, allocations: 1.735 MB / 333.9 MB, free: 1.996 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002393/0.2962, allocations: 1.167 MB / 335.1 MB, free: 0.832 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002454/0.2965, allocations: 57.28 kB / 335.1 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.034e-05/0.2966, allocations: 50.81 kB / 335.2 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of pre-optimization done (n=136): time 3.506e-06/0.2966, allocations: 0 / 335.2 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of matching and sorting (n=151): time 0.0172/0.3138, allocations: 6.553 MB / 341.7 MB, free: 10.16 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.089e-05/0.3138, allocations: 68.72 kB / 341.8 MB, free: 10.08 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003742/0.3176, allocations: 1.911 MB / 343.7 MB, free: 8.176 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001915/0.3178, allocations: 49.7 kB / 343.7 MB, free: 8.121 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001355/0.3191, allocations: 1.414 MB / 345.2 MB, free: 6.703 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006232/0.3197, allocations: 0.5262 MB / 345.7 MB, free: 6.184 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007069/0.3204, allocations: 351.4 kB / 346 MB, free: 5.832 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.3206, allocations: 301.1 kB / 346.3 MB, free: 5.535 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001582/0.3222, allocations: 0.8666 MB / 347.2 MB, free: 4.668 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00207/0.3243, allocations: 1.37 MB / 348.6 MB, free: 3.102 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003706/0.328, allocations: 2.325 MB / 350.9 MB, free: 0.6289 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.429e-05/0.328, allocations: 8 kB / 350.9 MB, free: 0.6211 MB / 298.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006643/0.3346, allocations: 3.267 MB / 354.2 MB, free: 13.43 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.217e-05/0.3346, allocations: 14.19 kB / 354.2 MB, free: 13.42 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.386e-05/0.3347, allocations: 16 kB / 354.2 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003388/0.3381, allocations: 0.9825 MB / 355.2 MB, free: 12.4 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001342/0.3394, allocations: 347.8 kB / 355.5 MB, free: 12.08 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02201/0.3614, allocations: 19.16 MB / 374.7 MB, free: 7.914 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001779/0.3632, allocations: 103.8 kB / 374.8 MB, free: 7.812 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003216/0.3635, allocations: 76 kB / 374.8 MB, free: 7.738 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%), (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.002103/0.3656, allocations: 0.9379 MB / 375.8 MB, free: 6.812 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007739/0.3664, allocations: 258.7 kB / 376 MB, free: 6.559 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005375/0.3718, allocations: 2.528 MB / 378.6 MB, free: 4.012 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.333e-05/0.3718, allocations: 19.94 kB / 378.6 MB, free: 3.992 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.013e-05/0.3718, allocations: 8 kB / 378.6 MB, free: 3.984 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.92e-05/0.3719, allocations: 7.969 kB / 378.6 MB, free: 3.977 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01221/0.3841, allocations: 5.124 MB / 383.7 MB, free: 14.8 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.548e-05/0.3841, allocations: 12.03 kB / 383.7 MB, free: 14.79 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000889/0.385, allocations: 194 kB / 383.9 MB, free: 14.61 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003017/0.388, allocations: 0.8509 MB / 384.8 MB, free: 13.73 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001817/0.3882, allocations: 35.98 kB / 384.8 MB, free: 13.7 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02003/0.4082, allocations: 16.86 MB / 401.7 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.735e-06/0.4082, allocations: 4.109 kB / 401.7 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007693/0.4159, allocations: 3.751 MB / 405.4 MB, free: 8.094 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001472/0.4174, allocations: 409.9 kB / 405.8 MB, free: 7.695 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005968/0.418, allocations: 35.98 kB / 405.9 MB, free: 7.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001467/0.4194, allocations: 107.9 kB / 406 MB, free: 7.555 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004535/0.4199, allocations: 144.4 kB / 406.1 MB, free: 7.414 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001519/0.42, allocations: 44 kB / 406.2 MB, free: 7.371 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002827/0.4229, allocations: 1.267 MB / 407.4 MB, free: 6.113 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.4229, allocations: 0 / 407.4 MB, free: 6.113 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003332/0.4262, allocations: 0.6523 MB / 408.1 MB, free: 5.461 MB / 362.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.0005599/0.4267, allocations: 208.7 kB / 408.3 MB, free: 5.262 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006063/0.4328, allocations: 3.364 MB / 411.6 MB, free: 1.816 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.185e-05/0.4328, allocations: 4 kB / 411.6 MB, free: 1.812 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003467/0.4363, allocations: 2.145 MB / 413.8 MB, free: 15.57 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004029/0.4403, allocations: 0.6243 MB / 414.4 MB, free: 14.96 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01333/0.4537, allocations: 5.731 MB / 420.1 MB, free: 9.164 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003292/0.4569, allocations: 1.73 MB / 421.9 MB, free: 7.402 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001903/0.4588, allocations: 489.5 kB / 422.4 MB, free: 6.922 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005474/0.4594, allocations: 128.5 kB / 422.5 MB, free: 6.797 MB / 378.7 MB Notification: Performance of SimCode: time 2.063e-06/0.4594, allocations: 0 / 422.5 MB, free: 6.797 MB / 378.7 MB Notification: Performance of Templates: time 0.1913/0.6507, allocations: 38.1 MB / 460.6 MB, free: 103 MB / 378.7 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.998220719979145]