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.001723/0.001723, allocations: 81.3 kB / 20.68 MB, free: 1.035 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.001956/0.001956, allocations: 146.7 kB / 23.93 MB, free: 4.188 MB / 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.402/1.402, allocations: 173.3 MB / 200.4 MB, free: 12.91 MB / 190.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 2.144e-06/2.144e-06, allocations: 0 / 318.9 MB, free: 3.559 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.161e-05/3.375e-05, allocations: 2.281 kB / 318.9 MB, free: 3.555 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01435/0.01439, allocations: 10.02 MB / 329 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01034/0.02473, allocations: 3.363 MB / 332.3 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002811/0.02754, allocations: 86.03 kB / 332.4 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002873/0.03041, allocations: 0.8387 MB / 333.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004188/0.0346, allocations: 1.008 MB / 334.3 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001299/0.0359, allocations: 444.6 kB / 334.7 MB, free: 9 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006128/0.04203, allocations: 3.882 MB / 338.6 MB, free: 6.613 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002466/0.04449, allocations: 1.539 MB / 340.1 MB, free: 5.629 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004289/0.04878, allocations: 2.456 MB / 342.6 MB, free: 3.965 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002891/0.05167, allocations: 1.746 MB / 344.3 MB, free: 2.211 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006724/0.05235, allocations: 416 kB / 344.7 MB, free: 1.805 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001066/0.05341, allocations: 0.492 MB / 345.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001299/0.05471, allocations: 1.246 MB / 346.5 MB, free: 64 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002013/0.05672, allocations: 1.345 MB / 347.8 MB, free: 14.71 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006325/0.06305, allocations: 5.628 MB / 353.4 MB, free: 9.07 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.06306, allocations: 0 / 353.4 MB, free: 9.07 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.06306, allocations: 0 / 353.4 MB, free: 9.07 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001077/0.06316, allocations: 0 / 353.4 MB, free: 9.07 MB / 318.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.007677/0.07084, allocations: 3.793 MB / 357.2 MB, free: 5.223 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.07088, allocations: 8.922 kB / 357.2 MB, free: 5.215 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001035/0.07192, allocations: 410.6 kB / 357.6 MB, free: 4.812 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00389/0.07581, allocations: 2.008 MB / 359.6 MB, free: 2.762 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000191/0.076, allocations: 214.1 kB / 359.8 MB, free: 2.551 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004602/0.07646, allocations: 288.3 kB / 360.1 MB, free: 2.27 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007289/0.08375, allocations: 4.163 MB / 364.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.795e-05/0.08382, allocations: 7.953 kB / 364.3 MB, free: 13.94 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000443/0.08426, allocations: 120 kB / 364.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001493/0.08441, allocations: 125.5 kB / 364.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006019/0.09043, allocations: 3.242 MB / 367.8 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01973/0.1102, allocations: 10.35 MB / 378.1 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00263/0.1128, allocations: 1.74 MB / 379.9 MB, free: 14.08 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002159/0.1149, allocations: 1.157 MB / 381 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002148/0.1152, allocations: 45.28 kB / 381.1 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.18e-05/0.1152, allocations: 47.88 kB / 381.1 MB, free: 12.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=136): time 3.076e-06/0.1152, allocations: 4 kB / 381.1 MB, free: 12.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=151): time 0.01483/0.13, allocations: 6.496 MB / 387.6 MB, free: 6.277 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.327e-05/0.1301, allocations: 68.72 kB / 387.7 MB, free: 6.199 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002927/0.133, allocations: 1.899 MB / 389.6 MB, free: 4.301 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001254/0.1332, allocations: 53.7 kB / 389.6 MB, free: 4.242 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001168/0.1343, allocations: 1.412 MB / 391.1 MB, free: 2.816 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005303/0.1348, allocations: 0.5267 MB / 391.6 MB, free: 2.285 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005638/0.1354, allocations: 347.4 kB / 391.9 MB, free: 1.941 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.1355, allocations: 305.1 kB / 392.2 MB, free: 1.641 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001418/0.137, allocations: 0.8666 MB / 393.1 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001854/0.1388, allocations: 1.369 MB / 394.5 MB, free: 15.19 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003287/0.1421, allocations: 2.33 MB / 396.8 MB, free: 12.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.227e-06/0.1421, allocations: 4 kB / 396.8 MB, free: 12.65 MB / 366.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006013/0.1481, allocations: 3.18 MB / 400 MB, free: 9.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.326e-05/0.1482, allocations: 12 kB / 400 MB, free: 9.418 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.688e-05/0.1482, allocations: 16 kB / 400 MB, free: 9.402 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002646/0.1508, allocations: 0.8448 MB / 400.8 MB, free: 8.523 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001368/0.1522, allocations: 343.4 kB / 401.2 MB, free: 8.188 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0217/0.1739, allocations: 19.1 MB / 420.3 MB, free: 3.965 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001818/0.1757, allocations: 99.88 kB / 420.4 MB, free: 3.867 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001514/0.1759, allocations: 68.11 kB / 420.4 MB, free: 3.801 MB / 382.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.00182/0.1777, allocations: 0.9489 MB / 421.4 MB, free: 2.844 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004158/0.1781, allocations: 214.6 kB / 421.6 MB, free: 2.633 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004855/0.183, allocations: 2.533 MB / 424.1 MB, free: 60 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.661e-05/0.183, allocations: 16 kB / 424.1 MB, free: 44 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.124e-05/0.183, allocations: 4 kB / 424.1 MB, free: 40 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.573e-05/0.183, allocations: 7.969 kB / 424.2 MB, free: 32 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01003/0.193, allocations: 5.107 MB / 429.3 MB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-05/0.193, allocations: 4 kB / 429.3 MB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008363/0.1939, allocations: 196.2 kB / 429.5 MB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001997/0.1959, allocations: 0.738 MB / 430.2 MB, free: 9.812 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.737e-05/0.196, allocations: 35.98 kB / 430.2 MB, free: 9.777 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0178/0.2138, allocations: 16.82 MB / 447.1 MB, free: 7.93 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.985e-06/0.2138, allocations: 7.938 kB / 447.1 MB, free: 7.922 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006984/0.2208, allocations: 3.696 MB / 450.8 MB, free: 4.129 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00132/0.2221, allocations: 398.6 kB / 451.1 MB, free: 3.738 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003566/0.2224, allocations: 32 kB / 451.2 MB, free: 3.707 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001103/0.2235, allocations: 103.9 kB / 451.3 MB, free: 3.605 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000409/0.224, allocations: 148.9 kB / 451.4 MB, free: 3.461 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001084/0.2241, allocations: 51.92 kB / 451.5 MB, free: 3.41 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002082/0.2261, allocations: 1.263 MB / 452.7 MB, free: 2.156 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2261, allocations: 0 / 452.7 MB, free: 2.156 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002568/0.2287, allocations: 0.6523 MB / 453.4 MB, free: 1.504 MB / 414.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.0004871/0.2292, allocations: 203 kB / 453.6 MB, free: 1.297 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005582/0.2348, allocations: 3.362 MB / 456.9 MB, free: 13.8 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.665e-06/0.2348, allocations: 0 / 456.9 MB, free: 13.8 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003108/0.2379, allocations: 2.155 MB / 459.1 MB, free: 11.51 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00439/0.2423, allocations: 0.5967 MB / 459.7 MB, free: 10.92 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0106/0.2529, allocations: 5.629 MB / 465.3 MB, free: 5.215 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002153/0.255, allocations: 1.734 MB / 467.1 MB, free: 3.449 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001488/0.2565, allocations: 473.5 kB / 467.5 MB, free: 2.984 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003845/0.2569, allocations: 124.5 kB / 467.6 MB, free: 2.863 MB / 430.1 MB Notification: Performance of SimCode: time 1.433e-06/0.2569, allocations: 0 / 467.6 MB, free: 2.863 MB / 430.1 MB Notification: Performance of Templates: time 0.2074/0.4643, allocations: 37.81 MB / 0.4936 GB, free: 109.5 MB / 430.1 MB " [Timeout remaining time 660] 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: 5.8339501321315765]