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.001591/0.001591, allocations: 96.03 kB / 21.18 MB, free: 0.5312 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.001793/0.001793, allocations: 185 kB / 24.46 MB, free: 3.863 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.524/1.524, allocations: 225.7 MB / 253.3 MB, free: 12.82 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.002335/0.002335, allocations: 51.92 kB / 371.7 MB, free: 9.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3018/0.3041, allocations: 52.17 MB / 423.8 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.0135/0.3176, allocations: 10.03 MB / 433.9 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00733/0.3249, allocations: 3.353 MB / 437.2 MB, free: 1.027 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00173/0.3267, allocations: 91.38 kB / 437.3 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002308/0.329, allocations: 0.8297 MB / 438.1 MB, free: 108 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002854/0.3318, allocations: 0.9669 MB / 439.1 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009509/0.3328, allocations: 439.4 kB / 439.5 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004717/0.3375, allocations: 3.744 MB / 443.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00264/0.3401, allocations: 1.534 MB / 444.8 MB, free: 9.344 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002943/0.3431, allocations: 1.698 MB / 446.5 MB, free: 7.641 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00331/0.3464, allocations: 1.942 MB / 448.5 MB, free: 5.691 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007689/0.3472, allocations: 424 kB / 448.9 MB, free: 5.277 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001167/0.3483, allocations: 0.4959 MB / 449.4 MB, free: 4.781 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001265/0.3496, allocations: 1.208 MB / 450.6 MB, free: 3.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00229/0.3519, allocations: 1.575 MB / 452.1 MB, free: 1.988 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006122/0.358, allocations: 5.59 MB / 457.7 MB, free: 12.38 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.802e-06/0.358, allocations: 8 kB / 457.7 MB, free: 12.37 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.358, allocations: 0 / 457.7 MB, free: 12.37 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001247/0.3581, allocations: 0 / 457.7 MB, free: 12.37 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.008643/0.3668, allocations: 3.828 MB / 461.6 MB, free: 8.488 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.3668, allocations: 12.03 kB / 461.6 MB, free: 8.477 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001052/0.3679, allocations: 406.6 kB / 462 MB, free: 8.078 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004322/0.3722, allocations: 2.008 MB / 464 MB, free: 6.027 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001866/0.3724, allocations: 214.1 kB / 464.2 MB, free: 5.816 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004585/0.3728, allocations: 283.9 kB / 464.5 MB, free: 5.539 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006941/0.3798, allocations: 4.158 MB / 468.6 MB, free: 1.219 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.589e-05/0.3799, allocations: 19.81 kB / 468.7 MB, free: 1.199 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002698/0.3801, allocations: 116 kB / 468.8 MB, free: 1.086 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001307/0.3803, allocations: 117.5 kB / 468.9 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005677/0.3859, allocations: 3.25 MB / 472.1 MB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01892/0.4049, allocations: 10.35 MB / 482.5 MB, free: 3.055 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002684/0.4075, allocations: 1.731 MB / 484.2 MB, free: 1.359 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002139/0.4097, allocations: 1.149 MB / 485.4 MB, free: 212 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002289/0.4099, allocations: 53.27 kB / 485.4 MB, free: 160 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.476e-05/0.41, allocations: 47.88 kB / 485.5 MB, free: 100 kB / 382.1 MB Notification: Performance of pre-optimization done (n=136): time 4.188e-06/0.41, allocations: 4 kB / 485.5 MB, free: 96 kB / 382.1 MB Notification: Performance of matching and sorting (n=151): time 0.01449/0.4245, allocations: 6.508 MB / 492 MB, free: 9.535 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.275e-05/0.4245, allocations: 68.72 kB / 492 MB, free: 9.457 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002949/0.4275, allocations: 1.903 MB / 493.9 MB, free: 7.555 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001721/0.4276, allocations: 49.7 kB / 494 MB, free: 7.5 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001121/0.4287, allocations: 1.412 MB / 495.4 MB, free: 6.074 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005175/0.4293, allocations: 0.5423 MB / 495.9 MB, free: 5.527 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005755/0.4298, allocations: 347.4 kB / 496.3 MB, free: 5.18 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.43, allocations: 305.1 kB / 496.6 MB, free: 4.879 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001439/0.4314, allocations: 0.8666 MB / 497.4 MB, free: 4.012 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001853/0.4333, allocations: 1.373 MB / 498.8 MB, free: 2.43 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003461/0.4367, allocations: 2.322 MB / 0.4894 GB, free: 15.9 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.18e-05/0.4367, allocations: 4 kB / 0.4894 GB, free: 15.89 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006014/0.4428, allocations: 3.18 MB / 0.4925 GB, free: 12.68 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.025e-05/0.4428, allocations: 12 kB / 0.4925 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.859e-05/0.4428, allocations: 16 kB / 0.4925 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002444/0.4453, allocations: 0.8487 MB / 0.4934 GB, free: 11.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001465/0.4467, allocations: 343.4 kB / 0.4937 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01914/0.4659, allocations: 19.11 MB / 0.5124 GB, free: 7.195 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001796/0.4677, allocations: 95.92 kB / 0.5124 GB, free: 7.102 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001797/0.4678, allocations: 72 kB / 0.5125 GB, free: 7.031 MB / 430.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.001803/0.4696, allocations: 0.9344 MB / 0.5134 GB, free: 6.086 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000458/0.4701, allocations: 210.6 kB / 0.5136 GB, free: 5.879 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004814/0.4749, allocations: 2.529 MB / 0.5161 GB, free: 3.309 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.697e-05/0.4749, allocations: 16 kB / 0.5161 GB, free: 3.293 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.385e-05/0.4749, allocations: 8.078 kB / 0.5161 GB, free: 3.285 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.306e-05/0.475, allocations: 12.03 kB / 0.5161 GB, free: 3.273 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01009/0.485, allocations: 5.122 MB / 0.5211 GB, free: 14.01 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.078e-05/0.4851, allocations: 4 kB / 0.5211 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008424/0.4859, allocations: 199.7 kB / 0.5213 GB, free: 13.81 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002095/0.488, allocations: 0.7266 MB / 0.522 GB, free: 13.05 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001124/0.4881, allocations: 35.98 kB / 0.5221 GB, free: 13.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2715/0.7596, allocations: 16.83 MB / 0.5385 GB, free: 101.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.734e-06/0.7596, allocations: 10.14 kB / 0.5385 GB, free: 101.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005618/0.7652, allocations: 3.706 MB / 0.5421 GB, free: 100.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001189/0.7664, allocations: 393.1 kB / 0.5425 GB, free: 100.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002838/0.7667, allocations: 37.91 kB / 0.5425 GB, free: 100.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/0.7677, allocations: 107.3 kB / 0.5427 GB, free: 100.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003067/0.768, allocations: 141.8 kB / 0.5428 GB, free: 100.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.177e-05/0.7681, allocations: 45.27 kB / 0.5428 GB, free: 100.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001614/0.7697, allocations: 1.265 MB / 0.5441 GB, free: 100.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.7697, allocations: 0 / 0.5441 GB, free: 100.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002134/0.7718, allocations: 0.6577 MB / 0.5447 GB, free: 100.1 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.000374/0.7722, allocations: 213.1 kB / 0.5449 GB, free: 99.96 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003783/0.776, allocations: 3.357 MB / 0.5482 GB, free: 98.05 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.855e-06/0.776, allocations: 7.078 kB / 0.5482 GB, free: 98.05 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00198/0.778, allocations: 2.14 MB / 0.5503 GB, free: 96.57 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002622/0.7806, allocations: 0.6051 MB / 0.5509 GB, free: 96.38 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007435/0.788, allocations: 5.785 MB / 0.5565 GB, free: 91.13 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001484/0.7895, allocations: 1.688 MB / 0.5582 GB, free: 89.88 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004858/0.79, allocations: 135.4 kB / 0.5583 GB, free: 89.75 MB / 446.1 MB Notification: Performance of SimCode: time 2.034e-06/0.79, allocations: 0 / 0.5583 GB, free: 89.75 MB / 446.1 MB Notification: Performance of Templates: time 0.3565/1.147, allocations: 188.2 MB / 0.7421 GB, free: 193 MB / 0.5294 GB " [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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins1/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: 16.4140716730617]