Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.0007878/0.0007878, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.00299/0.00299, allocations: 161.5 kB / 24.7 MB, free: 9.418 MB / 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.8291/0.8291, allocations: 177.2 MB / 205 MB, free: 5.719 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.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.714e-06/1.714e-06, allocations: 0 / 325.8 MB, free: 15.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.616e-05/2.787e-05, allocations: 2.281 kB / 325.8 MB, free: 15.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002877/0.002904, allocations: 2.015 MB / 327.8 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007795/0.003684, allocations: 0.5841 MB / 328.4 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.815e-05/0.003782, allocations: 4 kB / 328.4 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001103/0.003892, allocations: 15.8 kB / 328.4 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001553/0.004048, allocations: 39.64 kB / 328.5 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002146/0.004262, allocations: 67.73 kB / 328.5 MB, free: 12.72 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001486/0.004411, allocations: 131.5 kB / 328.7 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000124/0.004535, allocations: 42.72 kB / 328.7 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.934e-05/0.004624, allocations: 75.8 kB / 328.8 MB, free: 12.47 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.571e-05/0.00469, allocations: 39.88 kB / 328.8 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.748e-05/0.004717, allocations: 12 kB / 328.8 MB, free: 12.42 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.539e-05/0.004733, allocations: 15.94 kB / 328.8 MB, free: 12.4 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.346e-05/0.004786, allocations: 39.83 kB / 328.9 MB, free: 12.36 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.87e-05/0.004825, allocations: 39.91 kB / 328.9 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001731/0.004998, allocations: 147.4 kB / 329.1 MB, free: 12.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.004e-06/0.005, allocations: 0 / 329.1 MB, free: 12.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.31e-07/0.005001, allocations: 0 / 329.1 MB, free: 12.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.519e-06/0.005005, allocations: 0 / 329.1 MB, free: 12.18 MB / 298.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.0004699/0.005475, allocations: 377.6 kB / 329.4 MB, free: 11.78 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.335e-05/0.005509, allocations: 8.031 kB / 329.4 MB, free: 11.77 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.852e-05/0.005547, allocations: 24.84 kB / 329.5 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001995/0.005747, allocations: 166.3 kB / 329.6 MB, free: 11.56 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.656e-05/0.005763, allocations: 12.38 kB / 329.6 MB, free: 11.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.748e-05/0.005791, allocations: 12.38 kB / 329.7 MB, free: 11.54 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003833/0.006174, allocations: 259 kB / 329.9 MB, free: 11.26 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.006189, allocations: 192 / 329.9 MB, free: 11.26 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.642e-05/0.006205, allocations: 4.375 kB / 329.9 MB, free: 11.26 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.006214, allocations: 7.938 kB / 329.9 MB, free: 11.25 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001533/0.006367, allocations: 83.88 kB / 330 MB, free: 11.17 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004379/0.006805, allocations: 0.4888 MB / 330.5 MB, free: 10.63 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002502/0.007055, allocations: 139.9 kB / 330.6 MB, free: 10.47 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.557e-05/0.007151, allocations: 74.62 kB / 330.7 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.145e-05/0.007172, allocations: 7.938 kB / 330.7 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.857e-05/0.007191, allocations: 38.48 kB / 330.7 MB, free: 10.33 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.372e-06/0.007192, allocations: 0 / 330.7 MB, free: 10.33 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.000316/0.007508, allocations: 193.3 kB / 330.9 MB, free: 10.14 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.91e-05/0.007567, allocations: 110.8 kB / 331 MB, free: 10 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001024/0.00767, allocations: 155 kB / 331.2 MB, free: 9.84 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.172e-05/0.007681, allocations: 29.7 kB / 331.2 MB, free: 9.805 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.739e-05/0.007739, allocations: 116.5 kB / 331.3 MB, free: 9.688 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.569e-05/0.007765, allocations: 27.78 kB / 331.4 MB, free: 9.66 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.657e-05/0.007801, allocations: 25.72 kB / 331.4 MB, free: 9.629 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.389e-05/0.007895, allocations: 326.8 kB / 331.7 MB, free: 9.301 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.398e-05/0.007949, allocations: 28.09 kB / 331.7 MB, free: 9.273 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.942e-05/0.008018, allocations: 82.78 kB / 331.8 MB, free: 9.168 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001242/0.008143, allocations: 114.8 kB / 331.9 MB, free: 9.031 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.008144, allocations: 4 kB / 331.9 MB, free: 9.027 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001541/0.008299, allocations: 129.6 kB / 332.1 MB, free: 8.895 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/0.008311, allocations: 8 kB / 332.1 MB, free: 8.887 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.008316, allocations: 0 / 332.1 MB, free: 8.887 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.00833, allocations: 8.031 kB / 332.1 MB, free: 8.879 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.241e-05/0.008392, allocations: 32.14 kB / 332.1 MB, free: 8.848 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.008399, allocations: 8 kB / 332.1 MB, free: 8.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.315e-05/0.008442, allocations: 23.81 kB / 332.1 MB, free: 8.816 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.693e-06/0.008449, allocations: 4 kB / 332.1 MB, free: 8.812 MB / 298.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 7.245e-05/0.008521, allocations: 121.8 kB / 332.3 MB, free: 8.684 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.871e-05/0.00861, allocations: 97.52 kB / 332.4 MB, free: 8.582 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.983e-05/0.00866, allocations: 21.25 kB / 332.4 MB, free: 8.566 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.008662, allocations: 0 / 332.4 MB, free: 8.566 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.008667, allocations: 8 kB / 332.4 MB, free: 8.559 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.00867, allocations: 0 / 332.4 MB, free: 8.559 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001488/0.008819, allocations: 145.2 kB / 332.5 MB, free: 8.387 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.00882, allocations: 3.938 kB / 332.5 MB, free: 8.383 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.474e-05/0.008915, allocations: 39.91 kB / 332.6 MB, free: 8.344 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.008917, allocations: 7.938 kB / 332.6 MB, free: 8.336 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.008928, allocations: 4 kB / 332.6 MB, free: 8.332 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.008929, allocations: 0 / 332.6 MB, free: 8.332 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.008932, allocations: 4 kB / 332.6 MB, free: 8.328 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003183/0.00925, allocations: 387.3 kB / 333 MB, free: 7.93 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.959e-05/0.00929, allocations: 31.86 kB / 333 MB, free: 7.898 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.511e-05/0.009305, allocations: 8 kB / 333 MB, free: 7.891 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.784e-05/0.009373, allocations: 7.984 kB / 333 MB, free: 7.883 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.326e-05/0.009406, allocations: 4 kB / 333 MB, free: 7.879 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.927e-06/0.00941, allocations: 4 kB / 333 MB, free: 7.875 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.741e-05/0.009467, allocations: 124.1 kB / 333.1 MB, free: 7.754 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.009467, allocations: 0 / 333.1 MB, free: 7.754 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001878/0.009655, allocations: 27.89 kB / 333.2 MB, free: 7.727 MB / 298.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 7.868e-05/0.009734, allocations: 107.3 kB / 333.3 MB, free: 7.609 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001736/0.009907, allocations: 98.48 kB / 333.4 MB, free: 7.516 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.263e-06/0.009909, allocations: 0 / 333.4 MB, free: 7.516 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.687e-05/0.009955, allocations: 27.92 kB / 333.4 MB, free: 7.488 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003318/0.01029, allocations: 56.48 kB / 333.4 MB, free: 7.434 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005072/0.01079, allocations: 398.1 kB / 333.8 MB, free: 7.008 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.962e-05/0.01087, allocations: 110.2 kB / 333.9 MB, free: 6.879 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.638e-05/0.01091, allocations: 20.5 kB / 334 MB, free: 6.859 MB / 298.7 MB Notification: Performance of SimCode: time 5.81e-07/0.01091, allocations: 0 / 334 MB, free: 6.859 MB / 298.7 MB Notification: Performance of Templates: time 0.002247/0.01316, allocations: 1.61 MB / 335.6 MB, free: 5.258 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.288768671452999]