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.001502/0.001502, allocations: 114.9 kB / 19.04 MB, free: 3.281 MB / 14.72 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.001483/0.001483, allocations: 190 kB / 22.21 MB, free: 112 kB / 14.72 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 1.493/1.493, allocations: 225.6 MB / 250.8 MB, free: 13.41 MB / 206.1 MB " [Timeout remaining time 178] 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.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|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.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001572/0.001572, allocations: 47.92 kB / 368.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3109/0.3124, allocations: 52.15 MB / 420.9 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01547/0.3279, allocations: 11.52 MB / 432.4 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007811/0.3357, allocations: 3.551 MB / 436 MB, free: 12 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001773/0.3375, allocations: 71.73 kB / 436 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002388/0.3399, allocations: 0.893 MB / 436.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003129/0.343, allocations: 0.9747 MB / 437.9 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001062/0.3441, allocations: 447.3 kB / 438.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005035/0.3491, allocations: 3.733 MB / 442.1 MB, free: 9.875 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002465/0.3516, allocations: 1.584 MB / 443.6 MB, free: 8.227 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002593/0.3542, allocations: 1.663 MB / 445.3 MB, free: 6.559 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003259/0.3574, allocations: 2.024 MB / 447.3 MB, free: 4.527 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008012/0.3582, allocations: 416 kB / 447.7 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001389/0.3596, allocations: 0.5076 MB / 448.2 MB, free: 3.613 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001351/0.361, allocations: 1.211 MB / 449.5 MB, free: 2.398 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002672/0.3636, allocations: 1.937 MB / 451.4 MB, free: 464 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007507/0.3712, allocations: 5.551 MB / 456.9 MB, free: 10.88 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.493e-06/0.3712, allocations: 0 / 456.9 MB, free: 10.88 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3712, allocations: 0 / 456.9 MB, free: 10.88 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001699/0.3713, allocations: 0 / 456.9 MB, free: 10.88 MB / 366.1 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.01055/0.3819, allocations: 3.903 MB / 460.8 MB, free: 6.906 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.461e-05/0.3819, allocations: 8.031 kB / 460.9 MB, free: 6.898 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001207/0.3831, allocations: 406.6 kB / 461.3 MB, free: 6.5 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00433/0.3875, allocations: 2.076 MB / 463.3 MB, free: 4.371 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001958/0.3877, allocations: 218.1 kB / 463.5 MB, free: 4.156 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004822/0.3882, allocations: 283.9 kB / 463.8 MB, free: 3.879 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007508/0.3957, allocations: 3.869 MB / 467.7 MB, free: 15.92 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.52e-05/0.3957, allocations: 7.953 kB / 467.7 MB, free: 15.91 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003097/0.396, allocations: 116 kB / 467.8 MB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001433/0.3962, allocations: 125.5 kB / 467.9 MB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00607/0.4023, allocations: 3.25 MB / 471.2 MB, free: 12.41 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02073/0.423, allocations: 11.82 MB / 483 MB, free: 292 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003561/0.4265, allocations: 3.548 MB / 486.5 MB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002118/0.4287, allocations: 1.156 MB / 487.7 MB, free: 11.17 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002767/0.4289, allocations: 122.7 kB / 487.8 MB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.161e-05/0.429, allocations: 55.81 kB / 487.9 MB, free: 10.96 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 3.347e-06/0.429, allocations: 0 / 487.9 MB, free: 10.96 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01504/0.444, allocations: 7.352 MB / 495.2 MB, free: 3.359 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.157e-05/0.4441, allocations: 76.7 kB / 495.3 MB, free: 3.273 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003688/0.4478, allocations: 2.056 MB / 497.4 MB, free: 1.176 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002154/0.448, allocations: 57.64 kB / 497.4 MB, free: 1.113 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001237/0.4493, allocations: 1.405 MB / 498.8 MB, free: 15.69 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005371/0.4498, allocations: 0.5384 MB / 499.4 MB, free: 15.15 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000589/0.4504, allocations: 347.4 kB / 499.7 MB, free: 14.8 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.4505, allocations: 309.1 kB / 0.4883 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001662/0.4522, allocations: 0.8666 MB / 0.4891 GB, free: 13.63 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001958/0.4541, allocations: 1.365 MB / 0.4905 GB, free: 12.06 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003423/0.4576, allocations: 2.334 MB / 0.4927 GB, free: 9.516 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.107e-06/0.4576, allocations: 4 kB / 0.4927 GB, free: 9.512 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00607/0.4636, allocations: 3.255 MB / 0.4959 GB, free: 6.195 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.85e-05/0.4637, allocations: 15.98 kB / 0.4959 GB, free: 6.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.524e-05/0.4637, allocations: 20 kB / 0.496 GB, free: 6.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002562/0.4663, allocations: 0.8443 MB / 0.4968 GB, free: 5.281 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001278/0.4676, allocations: 343.4 kB / 0.4971 GB, free: 4.945 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02114/0.4887, allocations: 20.59 MB / 0.5172 GB, free: 14.81 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001843/0.4906, allocations: 99.88 kB / 0.5173 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001589/0.4907, allocations: 68 kB / 0.5174 GB, free: 14.65 MB / 446.1 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.001764/0.4925, allocations: 0.9492 MB / 0.5183 GB, free: 13.69 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004151/0.4929, allocations: 226.5 kB / 0.5185 GB, free: 13.47 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004771/0.4977, allocations: 2.617 MB / 0.5211 GB, free: 10.79 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.315e-05/0.4977, allocations: 12 kB / 0.5211 GB, free: 10.77 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.295e-05/0.4977, allocations: 8 kB / 0.5211 GB, free: 10.77 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.481e-05/0.4977, allocations: 7.969 kB / 0.5211 GB, free: 10.76 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01012/0.5078, allocations: 5.859 MB / 0.5268 GB, free: 4.719 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.07e-05/0.5079, allocations: 8.062 kB / 0.5268 GB, free: 4.711 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007755/0.5086, allocations: 199.6 kB / 0.527 GB, free: 4.516 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001866/0.5105, allocations: 0.7342 MB / 0.5277 GB, free: 3.75 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.905e-05/0.5106, allocations: 36 kB / 0.5278 GB, free: 3.715 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01724/0.5278, allocations: 18.16 MB / 0.5455 GB, free: 164 kB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.541e-06/0.5278, allocations: 4 kB / 0.5455 GB, free: 160 kB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2275/0.7553, allocations: 3.794 MB / 0.5492 GB, free: 118.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001049/0.7564, allocations: 487.5 kB / 0.5497 GB, free: 118.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002948/0.7567, allocations: 37.75 kB / 0.5497 GB, free: 118.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009884/0.7577, allocations: 110.2 kB / 0.5498 GB, free: 118.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003325/0.758, allocations: 144.2 kB / 0.55 GB, free: 118.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.646e-05/0.7581, allocations: 44.17 kB / 0.55 GB, free: 118.5 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001718/0.7598, allocations: 1.401 MB / 0.5514 GB, free: 118.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7598, allocations: 0 / 0.5514 GB, free: 118.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002018/0.7618, allocations: 0.6596 MB / 0.552 GB, free: 118.1 MB / 462.1 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.0003203/0.7621, allocations: 201.8 kB / 0.5522 GB, free: 117.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003653/0.7658, allocations: 3.362 MB / 0.5555 GB, free: 116.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.7658, allocations: 0 / 0.5555 GB, free: 116.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00189/0.7677, allocations: 2.145 MB / 0.5576 GB, free: 114.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002551/0.7702, allocations: 0.682 MB / 0.5583 GB, free: 114.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007139/0.7774, allocations: 5.794 MB / 0.5639 GB, free: 111.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001421/0.7788, allocations: 2.284 MB / 0.5661 GB, free: 109.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001257/0.78, allocations: 0.4965 MB / 0.5666 GB, free: 109.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003174/0.7804, allocations: 135.1 kB / 0.5668 GB, free: 109.2 MB / 462.1 MB Notification: Performance of SimCode: time 1.272e-06/0.7804, allocations: 0 / 0.5668 GB, free: 109.2 MB / 462.1 MB Notification: Performance of Templates: time 0.05337/0.8337, allocations: 37.67 MB / 0.6035 GB, free: 73.06 MB / 462.1 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 6.192597920075059]