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.001764/0.001764, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 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.002191/0.002191, allocations: 205.4 kB / 23.73 MB, free: 4.379 MB / 14.72 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.646/1.646, allocations: 230.6 MB / 257.5 MB, free: 7.82 MB / 206.1 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 0.001633/0.001633, allocations: 51.92 kB / 378.2 MB, free: 2.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3496/0.3512, allocations: 53.37 MB / 431.6 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01907/0.3703, allocations: 10.04 MB / 441.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01022/0.3805, allocations: 3.4 MB / 445 MB, free: 9.219 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002727/0.3832, allocations: 87.44 kB / 445.1 MB, free: 9.133 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003329/0.3865, allocations: 0.8215 MB / 446 MB, free: 8.309 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004507/0.391, allocations: 0.9825 MB / 446.9 MB, free: 7.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001985/0.393, allocations: 447.4 kB / 447.4 MB, free: 6.883 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006037/0.3991, allocations: 3.755 MB / 451.1 MB, free: 3.113 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003466/0.4025, allocations: 1.589 MB / 452.7 MB, free: 1.461 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003307/0.4058, allocations: 1.706 MB / 454.4 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004245/0.4101, allocations: 2.02 MB / 456.4 MB, free: 13.72 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001707/0.4118, allocations: 420 kB / 456.9 MB, free: 13.31 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002074/0.4139, allocations: 0.4959 MB / 457.4 MB, free: 12.82 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002223/0.4161, allocations: 1.212 MB / 458.6 MB, free: 11.6 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003576/0.4197, allocations: 1.579 MB / 460.1 MB, free: 10.02 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009281/0.429, allocations: 5.601 MB / 465.7 MB, free: 4.395 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.053e-05/0.429, allocations: 0 / 465.7 MB, free: 4.395 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.036e-06/0.429, allocations: 0 / 465.7 MB, free: 4.395 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002067/0.4292, allocations: 0 / 465.7 MB, free: 4.395 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.01032/0.4395, allocations: 3.836 MB / 469.6 MB, free: 0.5039 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.505e-05/0.4395, allocations: 8.031 kB / 469.6 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001267/0.4408, allocations: 414.6 kB / 470 MB, free: 92 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005963/0.4468, allocations: 2.012 MB / 472 MB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002259/0.447, allocations: 210.1 kB / 472.2 MB, free: 13.83 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008539/0.4479, allocations: 287.9 kB / 472.5 MB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00993/0.4578, allocations: 4.162 MB / 476.7 MB, free: 9.223 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.244e-05/0.4579, allocations: 7.953 kB / 476.7 MB, free: 9.215 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003022/0.4582, allocations: 116 kB / 476.8 MB, free: 9.102 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001609/0.4583, allocations: 121.5 kB / 476.9 MB, free: 8.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007411/0.4657, allocations: 3.25 MB / 480.1 MB, free: 5.719 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02385/0.4896, allocations: 10.35 MB / 490.5 MB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003009/0.4926, allocations: 1.728 MB / 492.2 MB, free: 9.371 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002207/0.4948, allocations: 1.154 MB / 493.4 MB, free: 8.215 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002292/0.495, allocations: 41.28 kB / 493.4 MB, free: 8.176 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.875e-05/0.4951, allocations: 51.88 kB / 493.5 MB, free: 8.113 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 3.396e-06/0.4951, allocations: 0 / 493.5 MB, free: 8.113 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01609/0.5112, allocations: 6.512 MB / 500 MB, free: 1.555 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.775e-05/0.5113, allocations: 64.72 kB / 0.4883 GB, free: 1.48 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0033/0.5146, allocations: 1.904 MB / 0.4902 GB, free: 15.58 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002279/0.5148, allocations: 53.7 kB / 0.4902 GB, free: 15.52 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001327/0.5161, allocations: 1.416 MB / 0.4916 GB, free: 14.09 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006584/0.5168, allocations: 0.5346 MB / 0.4921 GB, free: 13.55 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006292/0.5174, allocations: 347.4 kB / 0.4925 GB, free: 13.2 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.5176, allocations: 301.1 kB / 0.4928 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001508/0.5191, allocations: 0.8705 MB / 0.4936 GB, free: 12.04 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001907/0.521, allocations: 1.369 MB / 0.4949 GB, free: 10.46 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003635/0.5246, allocations: 2.33 MB / 0.4972 GB, free: 7.922 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.556e-05/0.5246, allocations: 4 kB / 0.4972 GB, free: 7.918 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006545/0.5312, allocations: 3.184 MB / 0.5003 GB, free: 4.691 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.249e-05/0.5312, allocations: 12 kB / 0.5003 GB, free: 4.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.139e-05/0.5313, allocations: 12 kB / 0.5004 GB, free: 4.668 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002683/0.534, allocations: 0.8564 MB / 0.5012 GB, free: 3.777 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00147/0.5354, allocations: 343.4 kB / 0.5015 GB, free: 3.441 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02152/0.5569, allocations: 19.12 MB / 0.5202 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001749/0.5587, allocations: 99.81 kB / 0.5203 GB, free: 15.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001961/0.5589, allocations: 79.98 kB / 0.5204 GB, free: 15.02 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.001923/0.5608, allocations: 0.9326 MB / 0.5213 GB, free: 14.08 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004914/0.5613, allocations: 210.7 kB / 0.5215 GB, free: 13.88 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004877/0.5662, allocations: 2.532 MB / 0.5239 GB, free: 11.29 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.978e-05/0.5662, allocations: 12 kB / 0.524 GB, free: 11.28 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.654e-05/0.5662, allocations: 8 kB / 0.524 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.702e-05/0.5662, allocations: 7.969 kB / 0.524 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01127/0.5775, allocations: 5.13 MB / 0.529 GB, free: 5.992 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.046e-05/0.5775, allocations: 4 kB / 0.529 GB, free: 5.988 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008162/0.5783, allocations: 196.2 kB / 0.5292 GB, free: 5.797 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002026/0.5804, allocations: 0.7303 MB / 0.5299 GB, free: 5.035 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000103/0.5805, allocations: 35.98 kB / 0.5299 GB, free: 5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2571/0.8375, allocations: 16.83 MB / 0.5463 GB, free: 89.94 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.65e-06/0.8375, allocations: 6.312 kB / 0.5464 GB, free: 89.94 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005305/0.8428, allocations: 3.705 MB / 0.55 GB, free: 88.45 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001197/0.844, allocations: 399.4 kB / 0.5504 GB, free: 88.37 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002773/0.8443, allocations: 35.5 kB / 0.5504 GB, free: 88.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001008/0.8453, allocations: 108.7 kB / 0.5505 GB, free: 88.32 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003428/0.8457, allocations: 145.3 kB / 0.5506 GB, free: 88.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.879e-05/0.8458, allocations: 47.61 kB / 0.5507 GB, free: 88.29 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001515/0.8473, allocations: 1.272 MB / 0.5519 GB, free: 87.82 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.8473, allocations: 0 / 0.5519 GB, free: 87.82 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002249/0.8495, allocations: 0.6509 MB / 0.5526 GB, free: 87.77 MB / 446.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.0003692/0.8499, allocations: 210.8 kB / 0.5528 GB, free: 87.64 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003761/0.8537, allocations: 3.365 MB / 0.556 GB, free: 85.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.8537, allocations: 3.938 kB / 0.556 GB, free: 85.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001914/0.8556, allocations: 2.135 MB / 0.5581 GB, free: 83.82 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002545/0.8581, allocations: 0.6061 MB / 0.5587 GB, free: 83.35 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007147/0.8653, allocations: 5.77 MB / 0.5644 GB, free: 78.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001369/0.8666, allocations: 1.733 MB / 0.566 GB, free: 76.82 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001189/0.8678, allocations: 481 kB / 0.5665 GB, free: 76.44 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002974/0.8681, allocations: 127.4 kB / 0.5666 GB, free: 76.32 MB / 446.1 MB Notification: Performance of SimCode: time 7.91e-07/0.8681, allocations: 0 / 0.5666 GB, free: 76.32 MB / 446.1 MB Notification: Performance of Templates: time 0.05166/0.9198, allocations: 42.4 MB / 0.608 GB, free: 34.58 MB / 446.1 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: 6.332906756550074]