Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001218/0.001218, allocations: 109.1 kB / 21.18 MB, free: 0.7852 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001339/0.001339, allocations: 217.3 kB / 24.49 MB, free: 4.172 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 230.5 MB / 258.1 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001933/0.001933, allocations: 67.89 kB / 379.1 MB, free: 2.473 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2703/0.2722, allocations: 53.41 MB / 432.5 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01565/0.2879, allocations: 11.54 MB / 444 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008413/0.2963, allocations: 3.606 MB / 447.6 MB, free: 7.527 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00223/0.2985, allocations: 95.38 kB / 447.7 MB, free: 7.434 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002617/0.3011, allocations: 0.893 MB / 448.6 MB, free: 6.535 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003388/0.3045, allocations: 0.9786 MB / 449.6 MB, free: 5.551 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001262/0.3058, allocations: 447.2 kB / 450 MB, free: 5.113 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005199/0.311, allocations: 3.759 MB / 453.8 MB, free: 1.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003214/0.3142, allocations: 1.598 MB / 455.4 MB, free: 15.68 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003088/0.3173, allocations: 1.709 MB / 457.1 MB, free: 13.96 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003947/0.3212, allocations: 2.016 MB / 459.1 MB, free: 11.94 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001348/0.3226, allocations: 420 kB / 459.5 MB, free: 11.53 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001871/0.3244, allocations: 0.5037 MB / 460 MB, free: 11.03 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002156/0.3266, allocations: 1.223 MB / 461.2 MB, free: 9.801 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003942/0.3305, allocations: 1.933 MB / 463.2 MB, free: 7.859 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008313/0.3388, allocations: 5.566 MB / 468.7 MB, free: 2.273 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.3389, allocations: 0 / 468.7 MB, free: 2.273 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.3389, allocations: 0 / 468.7 MB, free: 2.273 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000217/0.3391, allocations: 4 kB / 468.7 MB, free: 2.27 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.01058/0.3497, allocations: 3.836 MB / 472.6 MB, free: 14.38 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.3497, allocations: 8.031 kB / 472.6 MB, free: 14.37 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001709/0.3514, allocations: 410.6 kB / 473 MB, free: 13.97 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005135/0.3565, allocations: 2.005 MB / 475 MB, free: 11.92 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002548/0.3568, allocations: 218.1 kB / 475.2 MB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008939/0.3577, allocations: 283.9 kB / 475.5 MB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008572/0.3663, allocations: 3.857 MB / 479.3 MB, free: 7.484 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001161/0.3664, allocations: 11.89 kB / 479.3 MB, free: 7.473 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00052/0.3669, allocations: 120 kB / 479.5 MB, free: 7.355 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001643/0.3671, allocations: 121.5 kB / 479.6 MB, free: 7.234 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007184/0.3742, allocations: 3.254 MB / 482.8 MB, free: 3.969 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02485/0.3991, allocations: 11.65 MB / 494.5 MB, free: 7.992 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003015/0.4021, allocations: 1.739 MB / 496.2 MB, free: 6.285 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002269/0.4044, allocations: 1.149 MB / 497.4 MB, free: 5.129 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002438/0.4046, allocations: 49.28 kB / 497.4 MB, free: 5.082 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.19e-05/0.4047, allocations: 47.86 kB / 497.5 MB, free: 5.023 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 3.787e-06/0.4047, allocations: 4 kB / 497.5 MB, free: 5.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01525/0.4199, allocations: 6.543 MB / 0.4922 GB, free: 14.43 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.069e-05/0.42, allocations: 64.72 kB / 0.4923 GB, free: 14.36 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004108/0.4241, allocations: 2.064 MB / 0.4943 GB, free: 12.25 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000177/0.4243, allocations: 49.7 kB / 0.4943 GB, free: 12.2 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001315/0.4256, allocations: 1.405 MB / 0.4957 GB, free: 10.78 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005886/0.4262, allocations: 0.5462 MB / 0.4962 GB, free: 10.23 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006951/0.4269, allocations: 347.4 kB / 0.4966 GB, free: 9.879 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.427, allocations: 301.1 kB / 0.4969 GB, free: 9.582 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001559/0.4286, allocations: 0.8666 MB / 0.4977 GB, free: 8.715 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002033/0.4306, allocations: 1.369 MB / 0.499 GB, free: 7.141 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003649/0.4343, allocations: 2.322 MB / 0.5013 GB, free: 4.613 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.889e-05/0.4343, allocations: 7.938 kB / 0.5013 GB, free: 4.605 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006323/0.4406, allocations: 3.199 MB / 0.5044 GB, free: 1.363 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.465e-05/0.4406, allocations: 12 kB / 0.5044 GB, free: 1.352 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.769e-05/0.4407, allocations: 16 kB / 0.5045 GB, free: 1.336 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002509/0.4432, allocations: 0.8524 MB / 0.5053 GB, free: 460 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001368/0.4446, allocations: 343.4 kB / 0.5056 GB, free: 116 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02118/0.4657, allocations: 19.45 MB / 0.5246 GB, free: 11.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002006/0.4677, allocations: 99.94 kB / 0.5247 GB, free: 11.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003698/0.4681, allocations: 79.98 kB / 0.5248 GB, free: 11.23 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.002236/0.4703, allocations: 0.9454 MB / 0.5257 GB, free: 10.27 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007559/0.4711, allocations: 230.5 kB / 0.5259 GB, free: 10.05 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005157/0.4763, allocations: 2.542 MB / 0.5284 GB, free: 7.465 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.118e-05/0.4763, allocations: 16 kB / 0.5284 GB, free: 7.449 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-05/0.4764, allocations: 4 kB / 0.5284 GB, free: 7.445 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.864e-05/0.4764, allocations: 7.969 kB / 0.5284 GB, free: 7.438 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01236/0.4887, allocations: 5.765 MB / 0.5341 GB, free: 1.512 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.414e-05/0.4888, allocations: 7.938 kB / 0.5341 GB, free: 1.504 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000824/0.4896, allocations: 195.8 kB / 0.5343 GB, free: 1.312 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002032/0.4916, allocations: 0.7345 MB / 0.535 GB, free: 0.5469 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001213/0.4917, allocations: 35.98 kB / 0.535 GB, free: 0.5117 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2502/0.742, allocations: 17.13 MB / 0.5517 GB, free: 85.35 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/0.742, allocations: 4.5 kB / 0.5517 GB, free: 85.35 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004957/0.7469, allocations: 3.722 MB / 0.5554 GB, free: 83.83 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001095/0.748, allocations: 418 kB / 0.5558 GB, free: 83.74 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002646/0.7483, allocations: 35.42 kB / 0.5558 GB, free: 83.72 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009984/0.7493, allocations: 105.1 kB / 0.5559 GB, free: 83.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000351/0.7496, allocations: 157.7 kB / 0.5561 GB, free: 83.67 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.557e-05/0.7497, allocations: 45.52 kB / 0.5561 GB, free: 83.66 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001757/0.7515, allocations: 1.406 MB / 0.5575 GB, free: 83.12 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.7515, allocations: 0 / 0.5575 GB, free: 83.12 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002088/0.7536, allocations: 0.6606 MB / 0.5581 GB, free: 83.06 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.0003366/0.7539, allocations: 206.6 kB / 0.5583 GB, free: 82.93 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00367/0.7576, allocations: 3.355 MB / 0.5616 GB, free: 80.99 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.76e-06/0.7576, allocations: 7.906 kB / 0.5616 GB, free: 80.99 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001955/0.7595, allocations: 2.137 MB / 0.5637 GB, free: 79.51 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002752/0.7623, allocations: 0.6925 MB / 0.5644 GB, free: 79.24 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007617/0.7699, allocations: 5.81 MB / 0.57 GB, free: 73.91 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001431/0.7713, allocations: 2.257 MB / 0.5722 GB, free: 71.75 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005037/0.7718, allocations: 146.4 kB / 0.5724 GB, free: 71.61 MB / 446.1 MB Notification: Performance of SimCode: time 1.092e-06/0.7718, allocations: 0 / 0.5724 GB, free: 71.61 MB / 446.1 MB Notification: Performance of Templates: time 0.3947/1.167, allocations: 188.7 MB / 0.7566 GB, free: 178.7 MB / 0.5294 GB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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: 17.789452048018575]