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.001393/0.001393, allocations: 100 kB / 21.18 MB, free: 0.6484 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.001425/0.001425, allocations: 185.8 kB / 24.45 MB, free: 3.961 MB / 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.394/1.394, allocations: 225.7 MB / 253.3 MB, free: 12.8 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.001614/0.001614, allocations: 43.92 kB / 371.6 MB, free: 9.203 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2454/0.247, allocations: 52.18 MB / 423.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003509/0.2505, allocations: 2.014 MB / 425.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001009/0.2515, allocations: 0.5338 MB / 426.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001055/0.2516, allocations: 3.938 kB / 426.4 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001101/0.2517, allocations: 19.8 kB / 426.4 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001659/0.2519, allocations: 35.72 kB / 426.4 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002762/0.2521, allocations: 75.78 kB / 426.5 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001817/0.2523, allocations: 131.5 kB / 426.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001311/0.2525, allocations: 37.02 kB / 426.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.217e-05/0.2526, allocations: 59.83 kB / 426.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.317e-05/0.2526, allocations: 43.72 kB / 426.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.809e-05/0.2527, allocations: 12 kB / 426.8 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.559e-05/0.2527, allocations: 15.94 kB / 426.8 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.693e-05/0.2528, allocations: 35.84 kB / 426.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.482e-05/0.2528, allocations: 51.72 kB / 426.9 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002129/0.253, allocations: 143 kB / 427 MB, free: 11.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.253, allocations: 0 / 427 MB, free: 11.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.253, allocations: 0 / 427 MB, free: 11.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.253, allocations: 4 kB / 427 MB, free: 11.27 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.0006427/0.2537, allocations: 388.3 kB / 427.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.2537, allocations: 16.02 kB / 427.4 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.666e-05/0.2538, allocations: 16.84 kB / 427.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002756/0.254, allocations: 154.2 kB / 427.6 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.024e-05/0.2541, allocations: 12.38 kB / 427.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.555e-05/0.2541, allocations: 16.33 kB / 427.6 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005138/0.2546, allocations: 262.8 kB / 427.8 MB, free: 10.35 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.2546, allocations: 0 / 427.8 MB, free: 10.35 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.803e-05/0.2546, allocations: 8 kB / 427.9 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.2547, allocations: 0 / 427.9 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002525/0.2549, allocations: 95.86 kB / 427.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006009/0.2555, allocations: 0.4925 MB / 428.4 MB, free: 9.703 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000343/0.2558, allocations: 135.7 kB / 428.6 MB, free: 9.543 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001624/0.256, allocations: 70.81 kB / 428.6 MB, free: 9.465 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.977e-05/0.256, allocations: 7.938 kB / 428.7 MB, free: 9.457 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.445e-05/0.2561, allocations: 38.56 kB / 428.7 MB, free: 9.41 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.253e-06/0.2561, allocations: 0 / 428.7 MB, free: 9.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005215/0.2566, allocations: 193.3 kB / 428.9 MB, free: 9.215 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.484e-05/0.2567, allocations: 114.8 kB / 429 MB, free: 9.078 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001538/0.2568, allocations: 162.2 kB / 429.1 MB, free: 8.91 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.888e-05/0.2569, allocations: 29.7 kB / 429.2 MB, free: 8.875 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.754e-05/0.2569, allocations: 108.5 kB / 429.3 MB, free: 8.766 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.963e-05/0.257, allocations: 27.78 kB / 429.3 MB, free: 8.738 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.856e-05/0.257, allocations: 41.67 kB / 429.4 MB, free: 8.691 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.2572, allocations: 318.8 kB / 429.7 MB, free: 8.371 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001143/0.2573, allocations: 48.09 kB / 429.7 MB, free: 8.324 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000192/0.2575, allocations: 141.6 kB / 429.8 MB, free: 8.137 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003021/0.2578, allocations: 181.5 kB / 430 MB, free: 7.91 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.2578, allocations: 0 / 430 MB, free: 7.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003884/0.2582, allocations: 205.1 kB / 430.2 MB, free: 7.703 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.2582, allocations: 8 kB / 430.2 MB, free: 7.695 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.2582, allocations: 4 kB / 430.2 MB, free: 7.691 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.2582, allocations: 4 kB / 430.2 MB, free: 7.688 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001523/0.2584, allocations: 48.39 kB / 430.3 MB, free: 7.641 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.845e-05/0.2584, allocations: 11.98 kB / 430.3 MB, free: 7.629 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001017/0.2585, allocations: 15.89 kB / 430.3 MB, free: 7.613 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.713e-05/0.2585, allocations: 12 kB / 430.3 MB, free: 7.602 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.0001153/0.2586, allocations: 133.8 kB / 430.5 MB, free: 7.461 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001528/0.2588, allocations: 89.52 kB / 430.5 MB, free: 7.367 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.342e-05/0.2588, allocations: 16.72 kB / 430.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.2588, allocations: 7.984 kB / 430.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.2588, allocations: 0 / 430.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.2588, allocations: 8 kB / 430.6 MB, free: 7.336 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002366/0.2591, allocations: 149.2 kB / 430.7 MB, free: 7.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.2591, allocations: 0 / 430.7 MB, free: 7.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001697/0.2593, allocations: 35.97 kB / 430.8 MB, free: 7.125 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.187e-06/0.2593, allocations: 4.406 kB / 430.8 MB, free: 7.121 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.588e-05/0.2593, allocations: 8 kB / 430.8 MB, free: 7.113 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.417e-06/0.2593, allocations: 3.938 kB / 430.8 MB, free: 7.109 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.2593, allocations: 0 / 430.8 MB, free: 7.109 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005408/0.2598, allocations: 383.5 kB / 431.1 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.666e-05/0.2599, allocations: 35.77 kB / 431.2 MB, free: 6.68 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.062e-05/0.2599, allocations: 0 / 431.2 MB, free: 6.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001369/0.26, allocations: 15.92 kB / 431.2 MB, free: 6.664 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.577e-05/0.2601, allocations: 4 kB / 431.2 MB, free: 6.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.017e-05/0.2601, allocations: 7.984 kB / 431.2 MB, free: 6.652 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.576e-05/0.2602, allocations: 128 kB / 431.3 MB, free: 6.527 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2602, allocations: 0 / 431.3 MB, free: 6.527 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003149/0.2605, allocations: 24 kB / 431.4 MB, free: 6.504 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.0001084/0.2606, allocations: 111.2 kB / 431.5 MB, free: 6.387 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003043/0.2609, allocations: 111.3 kB / 431.6 MB, free: 6.281 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.2609, allocations: 0 / 431.6 MB, free: 6.281 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.404e-05/0.261, allocations: 28.91 kB / 431.6 MB, free: 6.254 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004873/0.2615, allocations: 71.88 kB / 431.7 MB, free: 6.188 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007581/0.2623, allocations: 455.8 kB / 432.1 MB, free: 5.703 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001082/0.2624, allocations: 110.6 kB / 432.2 MB, free: 5.578 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.156e-05/0.2624, allocations: 15.44 kB / 432.2 MB, free: 5.562 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2624, allocations: 4 kB / 432.2 MB, free: 5.559 MB / 334.1 MB Notification: Performance of Templates: time 0.003495/0.2659, allocations: 1.671 MB / 433.9 MB, free: 3.895 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/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: 6.9959840988740325]