Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.001424/0.001424, allocations: 88.62 kB / 20.96 MB, free: 3.477 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.001487/0.001487, allocations: 149.3 kB / 24.26 MB, free: 184 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.448/1.448, allocations: 173.3 MB / 200.8 MB, free: 9.309 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.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.104e-06/2.104e-06, allocations: 0 / 267.3 MB, free: 6.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.134e-05/3.344e-05, allocations: 6.312 kB / 267.3 MB, free: 6.754 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003712/0.003746, allocations: 1.991 MB / 269.3 MB, free: 4.746 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001164/0.004909, allocations: 0.5569 MB / 269.8 MB, free: 4.184 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001048/0.005014, allocations: 3.938 kB / 269.8 MB, free: 4.18 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00013/0.005144, allocations: 19.8 kB / 269.9 MB, free: 4.16 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001781/0.005322, allocations: 27.72 kB / 269.9 MB, free: 4.133 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000299/0.005621, allocations: 75.72 kB / 270 MB, free: 4.059 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002062/0.005828, allocations: 139.4 kB / 270.1 MB, free: 3.922 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001357/0.005963, allocations: 34.12 kB / 270.1 MB, free: 3.883 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001294/0.006093, allocations: 75.8 kB / 270.2 MB, free: 3.809 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.118e-05/0.006184, allocations: 47.81 kB / 270.3 MB, free: 3.762 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.175e-05/0.006216, allocations: 12 kB / 270.3 MB, free: 3.75 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.416e-05/0.00624, allocations: 12 kB / 270.3 MB, free: 3.738 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.721e-05/0.006307, allocations: 31.89 kB / 270.3 MB, free: 3.707 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.082e-05/0.006378, allocations: 47.84 kB / 270.4 MB, free: 3.66 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002297/0.006607, allocations: 135.5 kB / 270.5 MB, free: 3.527 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.006611, allocations: 0 / 270.5 MB, free: 3.527 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.928e-06/0.006615, allocations: 3.984 kB / 270.5 MB, free: 3.523 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.00662, allocations: 7.938 kB / 270.5 MB, free: 3.516 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006816/0.007302, allocations: 377.6 kB / 270.9 MB, free: 3.117 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/0.007349, allocations: 8.922 kB / 270.9 MB, free: 3.109 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.656e-05/0.007426, allocations: 28.84 kB / 270.9 MB, free: 3.082 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002981/0.007724, allocations: 161.4 kB / 271.1 MB, free: 2.898 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.838e-05/0.007742, allocations: 12.36 kB / 271.1 MB, free: 2.887 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.46e-05/0.007787, allocations: 20.33 kB / 271.1 MB, free: 2.867 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005656/0.008353, allocations: 254.4 kB / 271.3 MB, free: 2.598 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.008366, allocations: 192 / 271.3 MB, free: 2.598 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.724e-05/0.008383, allocations: 4.359 kB / 271.3 MB, free: 2.594 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/0.008393, allocations: 7.938 kB / 271.4 MB, free: 2.586 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002759/0.008669, allocations: 91.88 kB / 271.4 MB, free: 2.496 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006839/0.009352, allocations: 0.4965 MB / 271.9 MB, free: 1.953 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003867/0.009739, allocations: 143.9 kB / 272.1 MB, free: 1.785 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002425/0.009982, allocations: 62.64 kB / 272.1 MB, free: 1.715 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.083e-05/0.01001, allocations: 8 kB / 272.2 MB, free: 1.707 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.296e-05/0.01005, allocations: 34.56 kB / 272.2 MB, free: 1.664 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.162e-06/0.01005, allocations: 0 / 272.2 MB, free: 1.664 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005947/0.01064, allocations: 193.4 kB / 272.4 MB, free: 1.469 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/0.01074, allocations: 114.7 kB / 272.5 MB, free: 1.332 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001713/0.01092, allocations: 158.3 kB / 272.6 MB, free: 1.168 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.129e-05/0.01094, allocations: 25.7 kB / 272.7 MB, free: 1.137 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.616e-05/0.01103, allocations: 120.6 kB / 272.8 MB, free: 1.016 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.445e-05/0.01106, allocations: 19.78 kB / 272.8 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.402e-05/0.01111, allocations: 29.72 kB / 272.8 MB, free: 0.9609 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001771/0.01129, allocations: 322.8 kB / 273.1 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001154/0.0114, allocations: 36.09 kB / 273.2 MB, free: 0.6016 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001515/0.01155, allocations: 86.72 kB / 273.3 MB, free: 0.4922 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002557/0.01181, allocations: 114.7 kB / 273.4 MB, free: 364 kB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.01181, allocations: 0 / 273.4 MB, free: 364 kB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003263/0.01214, allocations: 145.6 kB / 273.5 MB, free: 212 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/0.01216, allocations: 8 kB / 273.5 MB, free: 204 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.427e-05/0.01217, allocations: 0 / 273.5 MB, free: 204 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.953e-05/0.01219, allocations: 4.219 kB / 273.5 MB, free: 200 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001231/0.01232, allocations: 27.98 kB / 273.6 MB, free: 172 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.776e-06/0.01233, allocations: 7.938 kB / 273.6 MB, free: 164 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.366e-05/0.01242, allocations: 23.88 kB / 273.6 MB, free: 140 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.01243, allocations: 4 kB / 273.6 MB, free: 136 kB / 250.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.0001269/0.01256, allocations: 121.8 kB / 273.7 MB, free: 4 kB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002028/0.01276, allocations: 102 kB / 273.8 MB, free: 15.89 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.545e-05/0.01284, allocations: 20.77 kB / 273.8 MB, free: 15.87 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.105e-06/0.01284, allocations: 0 / 273.8 MB, free: 15.87 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.01285, allocations: 4 kB / 273.8 MB, free: 15.87 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.01285, allocations: 4 kB / 273.8 MB, free: 15.86 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002717/0.01312, allocations: 149.1 kB / 274 MB, free: 15.69 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.01312, allocations: 0 / 274 MB, free: 15.69 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001933/0.01332, allocations: 43.91 kB / 274 MB, free: 15.65 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.01332, allocations: 0 / 274 MB, free: 15.65 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.754e-05/0.01334, allocations: 8 kB / 274 MB, free: 15.64 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/0.01334, allocations: 0 / 274 MB, free: 15.64 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.01334, allocations: 4 kB / 274 MB, free: 15.64 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006301/0.01397, allocations: 387.4 kB / 274.4 MB, free: 15.24 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.562e-05/0.01404, allocations: 27.88 kB / 274.4 MB, free: 15.21 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.595e-05/0.01407, allocations: 7.938 kB / 274.5 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001484/0.01422, allocations: 8 kB / 274.5 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.415e-05/0.01426, allocations: 3.984 kB / 274.5 MB, free: 15.19 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.16e-05/0.01428, allocations: 4 kB / 274.5 MB, free: 15.19 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001115/0.01439, allocations: 124.7 kB / 274.6 MB, free: 15.07 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01439, allocations: 0 / 274.6 MB, free: 15.07 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003153/0.0147, allocations: 31.88 kB / 274.6 MB, free: 15.04 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.0001252/0.01483, allocations: 103.3 kB / 274.7 MB, free: 14.93 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000322/0.01515, allocations: 95.91 kB / 274.8 MB, free: 14.83 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.01515, allocations: 0 / 274.8 MB, free: 14.83 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001065/0.01526, allocations: 35.84 kB / 274.9 MB, free: 14.8 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000529/0.01579, allocations: 67.41 kB / 274.9 MB, free: 14.73 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007343/0.01652, allocations: 376.2 kB / 275.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001281/0.01665, allocations: 106.2 kB / 275.4 MB, free: 14.21 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.967e-05/0.01669, allocations: 4.656 kB / 275.4 MB, free: 14.21 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.516e-05/0.01673, allocations: 20.5 kB / 275.4 MB, free: 14.19 MB / 266.7 MB Notification: Performance of SimCode: time 3.81e-07/0.01673, allocations: 0 / 275.4 MB, free: 14.19 MB / 266.7 MB Notification: Performance of Templates: time 0.004671/0.02141, allocations: 1.365 MB / 276.8 MB, free: 12.88 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.316663504112512]