Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.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.0007432/0.0007432, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001046/0.001789, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.0006408/0.0006408, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009387/0.00158, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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 0.9106/0.9106, allocations: 173.4 MB / 185.8 MB, free: 8.992 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09282/1.003, allocations: 52.5 MB / 238.3 MB, free: 4.434 MB / 234.7 MB " [Timeout remaining time 179] 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.Clocked.Examples.SimpleControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.142e-06/1.142e-06, allocations: 3.938 kB / 239.5 MB, free: 3.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.073e-05/2.187e-05, allocations: 2.312 kB / 239.5 MB, free: 3.207 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.002259/0.002281, allocations: 1.951 MB / 241.5 MB, free: 1.246 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005077/0.002789, allocations: 462.8 kB / 241.9 MB, free: 0.7891 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.496e-05/0.002854, allocations: 0 / 241.9 MB, free: 0.7891 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 5.438e-05/0.002908, allocations: 23.8 kB / 241.9 MB, free: 0.7656 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 4.645e-05/0.002955, allocations: 19.8 kB / 242 MB, free: 0.7461 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 8.048e-05/0.003035, allocations: 35.89 kB / 242 MB, free: 0.7109 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001201/0.003155, allocations: 107.5 kB / 242.1 MB, free: 0.6055 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.525e-05/0.00325, allocations: 26.23 kB / 242.1 MB, free: 0.5742 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.539e-05/0.003346, allocations: 71.81 kB / 242.2 MB, free: 0.5039 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.657e-05/0.003412, allocations: 31.89 kB / 242.2 MB, free: 484 kB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.639e-05/0.003439, allocations: 8 kB / 242.2 MB, free: 476 kB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.67e-05/0.003455, allocations: 8 kB / 242.3 MB, free: 468 kB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 2.064e-05/0.003476, allocations: 19.94 kB / 242.3 MB, free: 448 kB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 2.911e-05/0.003505, allocations: 23.94 kB / 242.3 MB, free: 424 kB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000142/0.003647, allocations: 67.7 kB / 242.4 MB, free: 356 kB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.163e-05/0.003659, allocations: 0 / 242.4 MB, free: 356 kB / 234.7 MB Notification: Performance of FrontEnd: time 6.52e-07/0.00366, allocations: 0 / 242.4 MB, free: 356 kB / 234.7 MB Notification: Performance of Transformations before backend: time 1.205e-05/0.003672, allocations: 0 / 242.4 MB, free: 356 kB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0004365/0.004108, allocations: 328.4 kB / 242.7 MB, free: 4 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.004154, allocations: 8.078 kB / 242.7 MB, free: 15.99 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.285e-05/0.004187, allocations: 8.938 kB / 242.7 MB, free: 15.98 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001641/0.004351, allocations: 145.5 kB / 242.8 MB, free: 15.82 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.041e-05/0.004361, allocations: 4.562 kB / 242.8 MB, free: 15.82 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.43e-05/0.004386, allocations: 16.36 kB / 242.9 MB, free: 15.8 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001423/0.004528, allocations: 119.5 kB / 243 MB, free: 15.67 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.004536, allocations: 3.938 kB / 243 MB, free: 15.67 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.656e-06/0.004545, allocations: 4 kB / 243 MB, free: 15.66 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.004549, allocations: 4 kB / 243 MB, free: 15.66 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.391e-05/0.004593, allocations: 19.98 kB / 243 MB, free: 15.64 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003821/0.004975, allocations: 381 kB / 243.4 MB, free: 15.24 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.404e-05/0.005059, allocations: 46.56 kB / 243.4 MB, free: 15.18 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.291e-05/0.005082, allocations: 24.94 kB / 243.5 MB, free: 15.16 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.625e-06/0.00509, allocations: 0 / 243.5 MB, free: 15.16 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.016e-05/0.00511, allocations: 38.44 kB / 243.5 MB, free: 15.11 MB / 250.7 MB Notification: Performance of pre-optimization done (n=7): time 1.223e-06/0.005111, allocations: 0 / 243.5 MB, free: 15.11 MB / 250.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001151/0.005227, allocations: 61.67 kB / 243.5 MB, free: 15.04 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.858e-05/0.005255, allocations: 51.41 kB / 243.6 MB, free: 14.98 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.829e-05/0.005313, allocations: 126.7 kB / 243.7 MB, free: 14.84 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.699e-06/0.005323, allocations: 29.7 kB / 243.8 MB, free: 14.81 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.791e-05/0.005361, allocations: 116.1 kB / 243.9 MB, free: 14.69 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.882e-05/0.00538, allocations: 27.75 kB / 243.9 MB, free: 14.66 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.091e-05/0.005411, allocations: 33.69 kB / 243.9 MB, free: 14.62 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.638e-05/0.005477, allocations: 314.8 kB / 244.2 MB, free: 14.31 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.441e-05/0.005492, allocations: 15.92 kB / 244.2 MB, free: 14.29 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.863e-05/0.00552, allocations: 44.28 kB / 244.3 MB, free: 14.23 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.135e-05/0.005571, allocations: 60.14 kB / 244.3 MB, free: 14.16 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.005573, allocations: 8 kB / 244.4 MB, free: 14.15 MB / 250.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 7.233e-05/0.005646, allocations: 77.55 kB / 244.4 MB, free: 14.07 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.073e-05/0.005656, allocations: 7.938 kB / 244.4 MB, free: 14.06 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.005662, allocations: 4 kB / 244.4 MB, free: 14.06 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.343e-06/0.005669, allocations: 3.984 kB / 244.4 MB, free: 14.05 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001456/0.005814, allocations: 35.92 kB / 244.5 MB, free: 14.02 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.546e-06/0.005818, allocations: 4.312 kB / 244.5 MB, free: 14.02 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.935e-05/0.005847, allocations: 15.88 kB / 244.5 MB, free: 14 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.161e-06/0.005854, allocations: 12.12 kB / 244.5 MB, free: 13.99 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.545e-05/0.005899, allocations: 109.8 kB / 244.6 MB, free: 13.87 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.634e-05/0.005915, allocations: 11.94 kB / 244.6 MB, free: 13.86 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.244e-05/0.005938, allocations: 12.44 kB / 244.6 MB, free: 13.85 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.00594, allocations: 3.984 kB / 244.6 MB, free: 13.84 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-06/0.005942, allocations: 0 / 244.6 MB, free: 13.84 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.005945, allocations: 4 kB / 244.7 MB, free: 13.84 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.998e-05/0.006025, allocations: 81.88 kB / 244.7 MB, free: 13.74 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.093e-06/0.006026, allocations: 3.938 kB / 244.7 MB, free: 13.74 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.274e-05/0.006099, allocations: 23.98 kB / 244.8 MB, free: 13.71 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.448e-06/0.006108, allocations: 11.89 kB / 244.8 MB, free: 13.7 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.225e-06/0.00611, allocations: 4 kB / 244.8 MB, free: 13.7 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.087e-05/0.006121, allocations: 4 kB / 244.8 MB, free: 13.7 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.71e-07/0.006122, allocations: 0 / 244.8 MB, free: 13.7 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.006123, allocations: 3.984 kB / 244.8 MB, free: 13.69 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001172/0.00624, allocations: 171.4 kB / 245 MB, free: 13.51 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.052e-05/0.006251, allocations: 3.938 kB / 245 MB, free: 13.5 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.69e-05/0.006288, allocations: 4 kB / 245 MB, free: 13.5 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.489e-05/0.006313, allocations: 11.95 kB / 245 MB, free: 13.49 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.064e-06/0.006315, allocations: 0 / 245 MB, free: 13.49 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.789e-05/0.006333, allocations: 34.38 kB / 245 MB, free: 13.45 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006333, allocations: 0 / 245 MB, free: 13.45 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001237/0.006456, allocations: 23.89 kB / 245 MB, free: 13.43 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 5.944e-05/0.006516, allocations: 80.42 kB / 245.1 MB, free: 13.34 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 6.657e-05/0.006582, allocations: 40.78 kB / 245.1 MB, free: 13.3 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.006588, allocations: 0 / 245.1 MB, free: 13.3 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 2.093e-05/0.006609, allocations: 24.78 kB / 245.2 MB, free: 13.27 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001513/0.00676, allocations: 32.23 kB / 245.2 MB, free: 13.24 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001477/0.008237, allocations: 264.7 kB / 245.5 MB, free: 12.96 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.176e-05/0.008279, allocations: 67.34 kB / 245.5 MB, free: 12.87 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.37e-05/0.008313, allocations: 12.48 kB / 245.5 MB, free: 12.86 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.129e-05/0.008404, allocations: 59.38 kB / 245.6 MB, free: 12.8 MB / 250.7 MB Notification: Performance of SimCode: time 6.92e-07/0.008405, allocations: 0 / 245.6 MB, free: 12.8 MB / 250.7 MB Notification: Performance of Templates: time 0.002953/0.01136, allocations: 1.222 MB / 246.8 MB, free: 11.61 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/Continuous/Continuous.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.3877680776640773]