Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.001865/0.001865, allocations: 95.86 kB / 20.96 MB, free: 3.465 MB / 18.57 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.001923/0.001923, allocations: 153.1 kB / 24.27 MB, free: 168 kB / 18.57 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.496/1.496, allocations: 173.3 MB / 200.8 MB, free: 9.332 MB / 186.7 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.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.402e-06/1.402e-06, allocations: 0 / 267.3 MB, free: 6.777 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.215e-05/2.355e-05, allocations: 2.312 kB / 267.3 MB, free: 6.773 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.00364/0.003663, allocations: 2.059 MB / 269.3 MB, free: 4.699 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009231/0.004586, allocations: 498.6 kB / 269.8 MB, free: 4.207 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.942e-05/0.004676, allocations: 4 kB / 269.8 MB, free: 4.203 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000117/0.004793, allocations: 15.8 kB / 269.9 MB, free: 4.188 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.213e-05/0.004875, allocations: 39.64 kB / 269.9 MB, free: 4.148 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002562/0.005131, allocations: 59.81 kB / 270 MB, free: 4.09 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000196/0.005327, allocations: 131.5 kB / 270.1 MB, free: 3.961 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001317/0.005459, allocations: 38 kB / 270.1 MB, free: 3.914 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001342/0.005593, allocations: 75.8 kB / 270.2 MB, free: 3.84 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.998e-05/0.005683, allocations: 43.88 kB / 270.2 MB, free: 3.797 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.741e-05/0.005711, allocations: 8 kB / 270.2 MB, free: 3.789 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.449e-05/0.005735, allocations: 12 kB / 270.3 MB, free: 3.777 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.769e-05/0.005773, allocations: 27.84 kB / 270.3 MB, free: 3.75 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.911e-05/0.005832, allocations: 39.91 kB / 270.3 MB, free: 3.711 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002286/0.00606, allocations: 139.4 kB / 270.5 MB, free: 3.574 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.006063, allocations: 0 / 270.5 MB, free: 3.574 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.006064, allocations: 8 kB / 270.5 MB, free: 3.566 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.006068, allocations: 0 / 270.5 MB, free: 3.566 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0006383/0.006706, allocations: 459.7 kB / 270.9 MB, free: 3.082 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.006742, allocations: 12.92 kB / 270.9 MB, free: 3.07 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.294e-05/0.006805, allocations: 20.89 kB / 270.9 MB, free: 3.051 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002443/0.00705, allocations: 163.8 kB / 271.1 MB, free: 2.867 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.491e-05/0.007065, allocations: 8.375 kB / 271.1 MB, free: 2.859 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.351e-05/0.007098, allocations: 16.38 kB / 271.1 MB, free: 2.844 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004737/0.007572, allocations: 240.2 kB / 271.4 MB, free: 2.578 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.766e-05/0.007589, allocations: 4.141 kB / 271.4 MB, free: 2.574 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.696e-05/0.007606, allocations: 8.359 kB / 271.4 MB, free: 2.566 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.007615, allocations: 7.938 kB / 271.4 MB, free: 2.559 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001972/0.007813, allocations: 67.91 kB / 271.5 MB, free: 2.492 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007835/0.008596, allocations: 0.6563 MB / 272.1 MB, free: 1.781 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003519/0.008948, allocations: 169.3 kB / 272.3 MB, free: 1.578 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001426/0.009091, allocations: 71.12 kB / 272.3 MB, free: 1.496 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.283e-05/0.009113, allocations: 4 kB / 272.3 MB, free: 1.492 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.652e-05/0.00915, allocations: 45.33 kB / 272.4 MB, free: 1.438 MB / 250.7 MB Notification: Performance of pre-optimization done (n=14): time 1.051e-06/0.009151, allocations: 0 / 272.4 MB, free: 1.438 MB / 250.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004491/0.0096, allocations: 165.4 kB / 272.6 MB, free: 1.27 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.318e-05/0.009693, allocations: 106.8 kB / 272.7 MB, free: 1.141 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001877/0.009881, allocations: 218.1 kB / 272.9 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.2e-05/0.009903, allocations: 25.7 kB / 272.9 MB, free: 0.8789 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001137/0.01002, allocations: 170.6 kB / 273.1 MB, free: 0.707 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.656e-05/0.01004, allocations: 23.84 kB / 273.1 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.757e-05/0.0101, allocations: 31.38 kB / 273.1 MB, free: 0.6445 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002511/0.01035, allocations: 0.5 MB / 273.6 MB, free: 136 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.064e-05/0.01043, allocations: 23.98 kB / 273.6 MB, free: 112 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001583/0.01059, allocations: 105.1 kB / 273.7 MB, free: 15.97 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002297/0.01082, allocations: 137.6 kB / 273.9 MB, free: 15.8 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.01082, allocations: 0 / 273.9 MB, free: 15.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002674/0.01109, allocations: 125.7 kB / 274 MB, free: 15.67 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.0111, allocations: 8 kB / 274 MB, free: 15.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.01111, allocations: 7.984 kB / 274 MB, free: 15.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.798e-05/0.01113, allocations: 4 kB / 274 MB, free: 15.65 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001073/0.01124, allocations: 23.94 kB / 274 MB, free: 15.63 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.01125, allocations: 3.984 kB / 274 MB, free: 15.62 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.002e-05/0.01132, allocations: 19.83 kB / 274.1 MB, free: 15.61 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.369e-05/0.01133, allocations: 8 kB / 274.1 MB, free: 15.6 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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 0.0001319/0.01146, allocations: 168.5 kB / 274.2 MB, free: 15.42 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001771/0.01164, allocations: 97.89 kB / 274.3 MB, free: 15.32 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.653e-05/0.01168, allocations: 24.77 kB / 274.4 MB, free: 15.3 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.01169, allocations: 0 / 274.4 MB, free: 15.3 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.01169, allocations: 4 kB / 274.4 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.01169, allocations: 0 / 274.4 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002635/0.01196, allocations: 164.4 kB / 274.5 MB, free: 15.1 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.01196, allocations: 3.938 kB / 274.5 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002018/0.01216, allocations: 39.97 kB / 274.6 MB, free: 15.05 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.01216, allocations: 0 / 274.6 MB, free: 15.05 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.479e-05/0.01218, allocations: 4 kB / 274.6 MB, free: 15.05 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.828e-06/0.01219, allocations: 11.98 kB / 274.6 MB, free: 15.04 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.01219, allocations: 4 kB / 274.6 MB, free: 15.04 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005713/0.01276, allocations: 466.5 kB / 275 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.253e-05/0.01278, allocations: 11.89 kB / 275.1 MB, free: 14.54 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.672e-05/0.01281, allocations: 7.984 kB / 275.1 MB, free: 14.54 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001181/0.01293, allocations: 8 kB / 275.1 MB, free: 14.53 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.915e-05/0.01297, allocations: 3.984 kB / 275.1 MB, free: 14.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.678e-06/0.01298, allocations: 4 kB / 275.1 MB, free: 14.52 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001052/0.01308, allocations: 154.3 kB / 275.2 MB, free: 14.37 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01308, allocations: 0 / 275.2 MB, free: 14.37 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002848/0.01337, allocations: 31.92 kB / 275.3 MB, free: 14.34 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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 0.0001195/0.01349, allocations: 107.2 kB / 275.4 MB, free: 14.23 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002687/0.01375, allocations: 91.58 kB / 275.5 MB, free: 14.13 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.654e-06/0.01376, allocations: 3.938 kB / 275.5 MB, free: 14.13 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.764e-05/0.01383, allocations: 27.67 kB / 275.5 MB, free: 14.1 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005/0.01433, allocations: 71.47 kB / 275.6 MB, free: 14.03 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008623/0.0152, allocations: 382.7 kB / 275.9 MB, free: 13.62 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001129/0.01531, allocations: 106.2 kB / 276 MB, free: 13.49 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.725e-05/0.01535, allocations: 4.984 kB / 276 MB, free: 13.48 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.77e-05/0.01538, allocations: 16.5 kB / 276 MB, free: 13.47 MB / 266.7 MB Notification: Performance of SimCode: time 4.41e-07/0.01538, allocations: 0 / 276 MB, free: 13.47 MB / 266.7 MB Notification: Performance of Templates: time 0.004575/0.01996, allocations: 1.337 MB / 277.4 MB, free: 12.18 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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: 4.316708100959659]