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.001671/0.001671, allocations: 107.6 kB / 21.19 MB, free: 0.6484 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.00213/0.00213, allocations: 209.3 kB / 24.48 MB, free: 3.938 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.512/1.512, allocations: 230.6 MB / 258.3 MB, free: 7.734 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.001525/0.001525, allocations: 51.94 kB / 379 MB, free: 2.402 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2244/0.2259, allocations: 53.37 MB / 432.4 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01299/0.2389, allocations: 10.05 MB / 442.4 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007225/0.2461, allocations: 3.4 MB / 445.8 MB, free: 9.172 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002566/0.2487, allocations: 87.44 kB / 445.9 MB, free: 9.086 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002392/0.2511, allocations: 0.819 MB / 446.7 MB, free: 8.262 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002886/0.2539, allocations: 0.9825 MB / 447.7 MB, free: 7.273 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001069/0.255, allocations: 443.4 kB / 448.1 MB, free: 6.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004555/0.2596, allocations: 3.752 MB / 451.9 MB, free: 3.074 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002243/0.2618, allocations: 1.593 MB / 453.5 MB, free: 1.418 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002438/0.2642, allocations: 1.702 MB / 455.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003006/0.2673, allocations: 2.02 MB / 457.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006786/0.2679, allocations: 420 kB / 457.6 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001045/0.269, allocations: 0.4959 MB / 458.1 MB, free: 12.78 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001271/0.2703, allocations: 1.215 MB / 459.3 MB, free: 11.56 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002154/0.2724, allocations: 1.579 MB / 460.9 MB, free: 9.973 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006573/0.279, allocations: 5.601 MB / 466.5 MB, free: 4.352 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.321e-06/0.279, allocations: 0 / 466.5 MB, free: 4.352 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.279, allocations: 0 / 466.5 MB, free: 4.352 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001519/0.2791, allocations: 0 / 466.5 MB, free: 4.352 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.008171/0.2873, allocations: 3.84 MB / 470.3 MB, free: 468 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.2874, allocations: 8.031 kB / 470.3 MB, free: 460 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001016/0.2884, allocations: 410.6 kB / 470.7 MB, free: 48 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004427/0.2928, allocations: 2.012 MB / 472.8 MB, free: 13.99 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002037/0.293, allocations: 210.1 kB / 473 MB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005799/0.2936, allocations: 287.9 kB / 473.2 MB, free: 13.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008438/0.302, allocations: 4.162 MB / 477.4 MB, free: 9.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.726e-05/0.3021, allocations: 7.953 kB / 477.4 MB, free: 9.172 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002786/0.3024, allocations: 120 kB / 477.5 MB, free: 9.055 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001401/0.3025, allocations: 121.5 kB / 477.7 MB, free: 8.934 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00562/0.3081, allocations: 3.242 MB / 480.9 MB, free: 5.68 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02005/0.3282, allocations: 10.35 MB / 491.2 MB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002766/0.3309, allocations: 1.732 MB / 493 MB, free: 9.324 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002126/0.3331, allocations: 1.149 MB / 494.1 MB, free: 8.172 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002473/0.3333, allocations: 47.14 kB / 494.2 MB, free: 8.129 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.781e-05/0.3334, allocations: 47.88 kB / 494.2 MB, free: 8.07 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 4.829e-06/0.3334, allocations: 0 / 494.2 MB, free: 8.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01496/0.3484, allocations: 6.512 MB / 0.489 GB, free: 1.512 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.033e-05/0.3484, allocations: 68.72 kB / 0.4891 GB, free: 1.434 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002988/0.3514, allocations: 1.9 MB / 0.4909 GB, free: 15.54 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001834/0.3516, allocations: 57.7 kB / 0.491 GB, free: 15.47 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001165/0.3528, allocations: 1.412 MB / 0.4923 GB, free: 14.05 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005674/0.3533, allocations: 0.5346 MB / 0.4929 GB, free: 13.51 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006161/0.3539, allocations: 351.4 kB / 0.4932 GB, free: 13.16 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.3541, allocations: 301.1 kB / 0.4935 GB, free: 12.86 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00143/0.3555, allocations: 0.8666 MB / 0.4943 GB, free: 11.99 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001808/0.3573, allocations: 1.377 MB / 0.4957 GB, free: 10.41 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003313/0.3606, allocations: 2.322 MB / 0.498 GB, free: 7.879 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.208e-05/0.3606, allocations: 4 kB / 0.498 GB, free: 7.875 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006086/0.3667, allocations: 3.184 MB / 0.5011 GB, free: 4.648 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.816e-05/0.3668, allocations: 12 kB / 0.5011 GB, free: 4.637 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.337e-05/0.3668, allocations: 12 kB / 0.5011 GB, free: 4.625 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002514/0.3693, allocations: 0.8448 MB / 0.5019 GB, free: 3.746 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001401/0.3707, allocations: 343.4 kB / 0.5022 GB, free: 3.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01917/0.3899, allocations: 19.13 MB / 0.5209 GB, free: 15.16 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001697/0.3916, allocations: 95.81 kB / 0.521 GB, free: 15.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001877/0.3917, allocations: 76 kB / 0.5211 GB, free: 14.99 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.001708/0.3935, allocations: 0.9366 MB / 0.522 GB, free: 14.05 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004762/0.3939, allocations: 214.6 kB / 0.5222 GB, free: 13.84 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004684/0.3986, allocations: 2.532 MB / 0.5247 GB, free: 11.25 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.488e-05/0.3986, allocations: 12 kB / 0.5247 GB, free: 11.24 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.476e-05/0.3986, allocations: 8 kB / 0.5247 GB, free: 11.23 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.512e-05/0.3987, allocations: 7.969 kB / 0.5247 GB, free: 11.23 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01113/0.4098, allocations: 5.13 MB / 0.5297 GB, free: 5.953 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.347e-05/0.4098, allocations: 4 kB / 0.5297 GB, free: 5.949 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008504/0.4107, allocations: 196.2 kB / 0.5299 GB, free: 5.758 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002207/0.4129, allocations: 0.7342 MB / 0.5306 GB, free: 4.992 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001491/0.413, allocations: 35.98 kB / 0.5307 GB, free: 4.957 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2403/0.6533, allocations: 16.82 MB / 0.5471 GB, free: 89.68 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.6533, allocations: 4.062 kB / 0.5471 GB, free: 89.68 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00532/0.6587, allocations: 3.709 MB / 0.5507 GB, free: 88.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001175/0.6598, allocations: 399.5 kB / 0.5511 GB, free: 88.11 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000261/0.6601, allocations: 35.28 kB / 0.5511 GB, free: 88.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001073/0.6612, allocations: 104.3 kB / 0.5512 GB, free: 88.07 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003776/0.6615, allocations: 144.2 kB / 0.5514 GB, free: 88.04 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.341e-05/0.6616, allocations: 52.61 kB / 0.5514 GB, free: 88.03 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001648/0.6633, allocations: 1.267 MB / 0.5526 GB, free: 87.57 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.6633, allocations: 3.938 kB / 0.5527 GB, free: 87.57 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002482/0.6658, allocations: 0.6566 MB / 0.5533 GB, free: 87.51 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.0004456/0.6662, allocations: 207.2 kB / 0.5535 GB, free: 87.39 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003934/0.6702, allocations: 3.364 MB / 0.5568 GB, free: 85.44 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.742e-06/0.6702, allocations: 0 / 0.5568 GB, free: 85.44 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002038/0.6722, allocations: 2.141 MB / 0.5589 GB, free: 83.51 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002937/0.6751, allocations: 0.6072 MB / 0.5595 GB, free: 83.04 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008612/0.6837, allocations: 5.774 MB / 0.5651 GB, free: 77.76 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001527/0.6853, allocations: 1.708 MB / 0.5668 GB, free: 76.49 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005577/0.6858, allocations: 131.4 kB / 0.5669 GB, free: 76.36 MB / 446.1 MB Notification: Performance of SimCode: time 1.062e-06/0.6858, allocations: 0 / 0.5669 GB, free: 76.36 MB / 446.1 MB Notification: Performance of Templates: time 0.366/1.052, allocations: 188.4 MB / 0.7509 GB, free: 182 MB / 0.5294 GB " [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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins1/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: 16.762467893015128]