Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.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.001058/0.001058, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 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.001005/0.001005, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 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 0.9875/0.9875, allocations: 177.1 MB / 205 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] 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.Clocked.Examples.SimpleControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.993e-06/1.993e-06, allocations: 0 / 272.9 MB, free: 1.586 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.148e-05/2.347e-05, allocations: 2.312 kB / 272.9 MB, free: 1.582 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.Continuous): time 0.002374/0.002397, allocations: 1.922 MB / 274.9 MB, free: 15.65 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007114/0.003109, allocations: 482.7 kB / 275.3 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.71e-05/0.003196, allocations: 0 / 275.3 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001095/0.003305, allocations: 15.86 kB / 275.4 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 5.821e-05/0.003363, allocations: 23.72 kB / 275.4 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001749/0.003538, allocations: 39.89 kB / 275.4 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001577/0.003696, allocations: 103.6 kB / 275.5 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001414/0.003837, allocations: 33.5 kB / 275.6 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.575e-05/0.003923, allocations: 55.89 kB / 275.6 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.786e-05/0.003991, allocations: 31.89 kB / 275.6 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.214e-05/0.004013, allocations: 8 kB / 275.6 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.472e-05/0.004028, allocations: 8 kB / 275.7 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.584e-05/0.004054, allocations: 23.91 kB / 275.7 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.548e-05/0.004089, allocations: 31.92 kB / 275.7 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001352/0.004224, allocations: 71.73 kB / 275.8 MB, free: 14.73 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.924e-06/0.004226, allocations: 0 / 275.8 MB, free: 14.73 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.004227, allocations: 4 kB / 275.8 MB, free: 14.73 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.368e-06/0.004232, allocations: 0 / 275.8 MB, free: 14.73 MB / 266.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.0004347/0.004667, allocations: 432.3 kB / 276.2 MB, free: 14.27 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.004705, allocations: 8.031 kB / 276.2 MB, free: 14.26 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.425e-05/0.004749, allocations: 12.89 kB / 276.2 MB, free: 14.25 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000149/0.004898, allocations: 144.5 kB / 276.4 MB, free: 14.08 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.668e-06/0.004908, allocations: 4.562 kB / 276.4 MB, free: 14.08 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.958e-05/0.004937, allocations: 20.27 kB / 276.4 MB, free: 14.06 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000197/0.005134, allocations: 122.4 kB / 276.5 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.005145, allocations: 4 kB / 276.5 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.068e-05/0.005155, allocations: 0 / 276.5 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.005162, allocations: 0 / 276.5 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.796e-05/0.00522, allocations: 27.98 kB / 276.5 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004982/0.005719, allocations: 0.5249 MB / 277.1 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001094/0.005828, allocations: 63.05 kB / 277.1 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.43e-05/0.005862, allocations: 15.69 kB / 277.1 MB, free: 13.23 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.163e-05/0.005874, allocations: 15.98 kB / 277.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.245e-05/0.005896, allocations: 41.31 kB / 277.2 MB, free: 13.16 MB / 266.7 MB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.005898, allocations: 0 / 277.2 MB, free: 13.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=7): time 0.000175/0.006073, allocations: 81.73 kB / 277.3 MB, free: 13.07 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.11e-05/0.006104, allocations: 51.41 kB / 277.3 MB, free: 13.01 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001039/0.006208, allocations: 184.7 kB / 277.5 MB, free: 12.82 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.053e-05/0.006218, allocations: 25.7 kB / 277.5 MB, free: 12.79 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.546e-05/0.006314, allocations: 166.6 kB / 277.7 MB, free: 12.62 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.88e-05/0.006332, allocations: 31.94 kB / 277.7 MB, free: 12.59 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.349e-05/0.006376, allocations: 31.38 kB / 277.8 MB, free: 12.55 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001937/0.00657, allocations: 0.4922 MB / 278.3 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.798e-05/0.006598, allocations: 12 kB / 278.3 MB, free: 12.03 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.122e-05/0.006659, allocations: 58.42 kB / 278.3 MB, free: 11.95 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.985e-05/0.006749, allocations: 86.3 kB / 278.4 MB, free: 11.85 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.006751, allocations: 0 / 278.4 MB, free: 11.85 MB / 266.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001101/0.006861, allocations: 101.5 kB / 278.5 MB, free: 11.74 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/0.006874, allocations: 8.125 kB / 278.5 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.006882, allocations: 4 kB / 278.5 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.103e-05/0.006903, allocations: 4 kB / 278.5 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000107/0.00701, allocations: 27.98 kB / 278.5 MB, free: 11.7 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.007018, allocations: 7.922 kB / 278.6 MB, free: 11.69 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.183e-05/0.00705, allocations: 11.94 kB / 278.6 MB, free: 11.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.616e-06/0.007058, allocations: 4 kB / 278.6 MB, free: 11.68 MB / 266.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 7.357e-05/0.007132, allocations: 160.6 kB / 278.7 MB, free: 11.51 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.928e-05/0.007151, allocations: 11.89 kB / 278.7 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.847e-05/0.00718, allocations: 12.44 kB / 278.8 MB, free: 11.48 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-06/0.007182, allocations: 4 kB / 278.8 MB, free: 11.48 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.007186, allocations: 3.984 kB / 278.8 MB, free: 11.48 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.00719, allocations: 0 / 278.8 MB, free: 11.48 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001903/0.00738, allocations: 144.6 kB / 278.9 MB, free: 11.3 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.007382, allocations: 0 / 278.9 MB, free: 11.3 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.121e-05/0.007454, allocations: 16 kB / 278.9 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.007456, allocations: 0 / 278.9 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.697e-05/0.007473, allocations: 3.938 kB / 278.9 MB, free: 11.28 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.007475, allocations: 7.922 kB / 278.9 MB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.007476, allocations: 0 / 278.9 MB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001826/0.007659, allocations: 235.9 kB / 279.2 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.105e-05/0.00767, allocations: 7.891 kB / 279.2 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.598e-05/0.007686, allocations: 7.922 kB / 279.2 MB, free: 11.01 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.699e-05/0.007723, allocations: 8 kB / 279.2 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.205e-05/0.007765, allocations: 7.984 kB / 279.2 MB, free: 10.99 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.495e-06/0.007767, allocations: 0 / 279.2 MB, free: 10.99 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.075e-05/0.007818, allocations: 139.2 kB / 279.3 MB, free: 10.86 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007818, allocations: 0 / 279.3 MB, free: 10.86 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001525/0.007971, allocations: 16 kB / 279.3 MB, free: 10.84 MB / 266.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 7.752e-05/0.008048, allocations: 107.2 kB / 279.4 MB, free: 10.73 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001173/0.008165, allocations: 55.53 kB / 279.5 MB, free: 10.67 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.242e-06/0.008167, allocations: 0 / 279.5 MB, free: 10.67 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.894e-05/0.008196, allocations: 23.69 kB / 279.5 MB, free: 10.64 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002504/0.008446, allocations: 19.53 kB / 279.5 MB, free: 10.62 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006392/0.009085, allocations: 322.2 kB / 279.9 MB, free: 10.28 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.393e-05/0.009129, allocations: 63.34 kB / 279.9 MB, free: 10.2 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.134e-05/0.00916, allocations: 4.5 kB / 279.9 MB, free: 10.2 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.734e-05/0.009198, allocations: 12.5 kB / 279.9 MB, free: 10.18 MB / 266.7 MB Notification: Performance of SimCode: time 1.122e-06/0.009199, allocations: 0 / 279.9 MB, free: 10.18 MB / 266.7 MB Notification: Performance of Templates: time 0.002971/0.01217, allocations: 1.056 MB / 281 MB, free: 9.141 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.9893569578416646]