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.001618/0.001618, allocations: 113 kB / 19.04 MB, free: 3.254 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.001869/0.001869, allocations: 197.9 kB / 22.22 MB, free: 72 kB / 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.461/1.461, allocations: 225.6 MB / 250.8 MB, free: 13.33 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.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 0.001537/0.001537, allocations: 47.92 kB / 368.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2441/0.2457, allocations: 52.13 MB / 420.8 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003756/0.2494, allocations: 2.073 MB / 422.9 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001121/0.2505, allocations: 0.5764 MB / 423.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001266/0.2507, allocations: 4 kB / 423.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001472/0.2508, allocations: 19.8 kB / 423.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000207/0.251, allocations: 39.72 kB / 423.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003207/0.2513, allocations: 71.8 kB / 423.6 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002218/0.2516, allocations: 127.6 kB / 423.7 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001611/0.2517, allocations: 37.86 kB / 423.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.895e-05/0.2518, allocations: 55.72 kB / 423.8 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.934e-05/0.2519, allocations: 59.7 kB / 423.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.198e-05/0.252, allocations: 12 kB / 423.9 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.216e-05/0.252, allocations: 8 kB / 423.9 MB, free: 12 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.044e-05/0.252, allocations: 31.91 kB / 424 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.172e-05/0.2521, allocations: 67.61 kB / 424 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002617/0.2524, allocations: 152.5 kB / 424.2 MB, free: 11.76 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.2524, allocations: 0 / 424.2 MB, free: 11.76 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.2524, allocations: 0 / 424.2 MB, free: 11.76 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.393e-05/0.2524, allocations: 0 / 424.2 MB, free: 11.76 MB / 334.1 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.0007254/0.2531, allocations: 462.7 kB / 424.6 MB, free: 11.26 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.2532, allocations: 12.03 kB / 424.6 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.579e-05/0.2532, allocations: 16.84 kB / 424.6 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000342/0.2536, allocations: 224 kB / 424.9 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.621e-05/0.2536, allocations: 16.36 kB / 424.9 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.239e-05/0.2536, allocations: 12.38 kB / 424.9 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005206/0.2542, allocations: 259.4 kB / 425.1 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.67e-05/0.2542, allocations: 4 kB / 425.1 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.518e-05/0.2542, allocations: 4 kB / 425.2 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.2542, allocations: 4 kB / 425.2 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000253/0.2544, allocations: 83.88 kB / 425.2 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007028/0.2551, allocations: 0.6038 MB / 425.8 MB, free: 9.898 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003649/0.2555, allocations: 143.9 kB / 426 MB, free: 9.73 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001581/0.2557, allocations: 70.64 kB / 426.1 MB, free: 9.652 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.882e-05/0.2557, allocations: 7.969 kB / 426.1 MB, free: 9.645 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.784e-05/0.2557, allocations: 34.56 kB / 426.1 MB, free: 9.602 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.533e-06/0.2557, allocations: 0 / 426.1 MB, free: 9.602 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005352/0.2563, allocations: 189.3 kB / 426.3 MB, free: 9.41 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.753e-05/0.2564, allocations: 114.8 kB / 426.4 MB, free: 9.273 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001697/0.2565, allocations: 162.1 kB / 426.5 MB, free: 9.105 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.277e-05/0.2565, allocations: 33.64 kB / 426.6 MB, free: 9.066 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.243e-05/0.2566, allocations: 112.5 kB / 426.7 MB, free: 8.953 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.705e-05/0.2567, allocations: 19.86 kB / 426.7 MB, free: 8.934 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.537e-05/0.2567, allocations: 45.78 kB / 426.8 MB, free: 8.883 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.2569, allocations: 326.8 kB / 427.1 MB, free: 8.555 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001194/0.257, allocations: 35.97 kB / 427.1 MB, free: 8.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001897/0.2572, allocations: 144.8 kB / 427.3 MB, free: 8.332 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002968/0.2575, allocations: 185.5 kB / 427.4 MB, free: 8.102 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.2575, allocations: 0 / 427.4 MB, free: 8.102 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003603/0.2579, allocations: 193.2 kB / 427.6 MB, free: 7.906 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.2579, allocations: 8 kB / 427.6 MB, free: 7.898 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.2579, allocations: 4 kB / 427.6 MB, free: 7.895 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.154e-05/0.2579, allocations: 4 kB / 427.6 MB, free: 7.891 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001587/0.2581, allocations: 51.91 kB / 427.7 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.207e-06/0.2581, allocations: 4.469 kB / 427.7 MB, free: 7.836 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001021/0.2582, allocations: 23.88 kB / 427.7 MB, free: 7.812 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.55e-05/0.2582, allocations: 12.23 kB / 427.7 MB, free: 7.801 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (21): * Single equations (assignments): 21 * 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.0001178/0.2583, allocations: 133.7 kB / 427.9 MB, free: 7.66 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001519/0.2585, allocations: 93.52 kB / 427.9 MB, free: 7.562 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.309e-05/0.2585, allocations: 28.7 kB / 428 MB, free: 7.531 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.2585, allocations: 4 kB / 428 MB, free: 7.527 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.2585, allocations: 0 / 428 MB, free: 7.527 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.2585, allocations: 8 kB / 428 MB, free: 7.52 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002938/0.2588, allocations: 217.9 kB / 428.2 MB, free: 7.258 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.2588, allocations: 0 / 428.2 MB, free: 7.258 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001912/0.259, allocations: 39.92 kB / 428.2 MB, free: 7.219 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/0.259, allocations: 3.984 kB / 428.2 MB, free: 7.215 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.363e-05/0.2591, allocations: 4 kB / 428.2 MB, free: 7.211 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.2591, allocations: 3.938 kB / 428.3 MB, free: 7.207 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.2591, allocations: 0 / 428.3 MB, free: 7.207 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005384/0.2596, allocations: 386.5 kB / 428.6 MB, free: 6.812 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.43e-05/0.2597, allocations: 109 kB / 428.7 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.369e-05/0.2597, allocations: 8 kB / 428.7 MB, free: 6.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001337/0.2598, allocations: 7.984 kB / 428.8 MB, free: 6.672 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.361e-05/0.2599, allocations: 4 kB / 428.8 MB, free: 6.668 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.107e-05/0.2599, allocations: 8.062 kB / 428.8 MB, free: 6.66 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.682e-05/0.26, allocations: 119.2 kB / 428.9 MB, free: 6.543 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.26, allocations: 0 / 428.9 MB, free: 6.543 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000314/0.2603, allocations: 28 kB / 428.9 MB, free: 6.516 MB / 334.1 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.0001179/0.2604, allocations: 103.2 kB / 429 MB, free: 6.406 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003202/0.2607, allocations: 120.2 kB / 429.1 MB, free: 6.289 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2607, allocations: 0 / 429.1 MB, free: 6.289 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.574e-05/0.2608, allocations: 31.91 kB / 429.2 MB, free: 6.258 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004937/0.2613, allocations: 67.81 kB / 429.2 MB, free: 6.191 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007661/0.2621, allocations: 429.9 kB / 429.6 MB, free: 5.738 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000345/0.2624, allocations: 0.7162 MB / 430.4 MB, free: 4.996 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.583e-05/0.2625, allocations: 17.42 kB / 430.4 MB, free: 4.98 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.818e-05/0.2625, allocations: 15.44 kB / 430.4 MB, free: 4.965 MB / 334.1 MB Notification: Performance of SimCode: time 6.71e-07/0.2625, allocations: 0 / 430.4 MB, free: 4.965 MB / 334.1 MB Notification: Performance of Templates: time 0.004395/0.2669, allocations: 1.424 MB / 431.8 MB, free: 3.586 MB / 334.1 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.480300866998732]