Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.001792/0.001792, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.002008/0.002008, allocations: 195 kB / 23.71 MB, free: 4.406 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.472/1.472, allocations: 225.7 MB / 252.5 MB, free: 12.82 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.ClockedWithDiscreteController,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.ClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,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.ClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001608/0.001608, allocations: 55.92 kB / 370.9 MB, free: 9.188 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.2594, allocations: 52.18 MB / 423.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003399/0.2628, allocations: 1.972 MB / 425 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009215/0.2638, allocations: 0.5064 MB / 425.5 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.534e-05/0.2639, allocations: 7.938 kB / 425.5 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001121/0.264, allocations: 15.8 kB / 425.6 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001357/0.2641, allocations: 27.78 kB / 425.6 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000229/0.2643, allocations: 59.81 kB / 425.6 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001822/0.2645, allocations: 119.6 kB / 425.8 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001382/0.2647, allocations: 41.61 kB / 425.8 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.718e-05/0.2647, allocations: 47.84 kB / 425.8 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.497e-05/0.2648, allocations: 51.72 kB / 425.9 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.732e-05/0.2649, allocations: 8 kB / 425.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.341e-05/0.2649, allocations: 12 kB / 425.9 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.786e-05/0.2649, allocations: 27.91 kB / 425.9 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.231e-05/0.265, allocations: 51.72 kB / 426 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001972/0.2652, allocations: 133.6 kB / 426.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.2652, allocations: 0 / 426.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2652, allocations: 0 / 426.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.2652, allocations: 0 / 426.1 MB, free: 11.36 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005874/0.2658, allocations: 361.8 kB / 426.5 MB, free: 10.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.356e-05/0.2658, allocations: 8.031 kB / 426.5 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.699e-05/0.2659, allocations: 20.83 kB / 426.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002614/0.2661, allocations: 146.3 kB / 426.6 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.643e-05/0.2661, allocations: 12.38 kB / 426.7 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.61e-05/0.2662, allocations: 12.38 kB / 426.7 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005196/0.2667, allocations: 258.5 kB / 426.9 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.628e-05/0.2667, allocations: 0 / 426.9 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.733e-05/0.2667, allocations: 8 kB / 426.9 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.2667, allocations: 0 / 426.9 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002505/0.267, allocations: 95.8 kB / 427 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005927/0.2676, allocations: 492.4 kB / 427.5 MB, free: 9.855 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003438/0.2679, allocations: 147.9 kB / 427.7 MB, free: 9.684 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001569/0.2681, allocations: 66.64 kB / 427.7 MB, free: 9.609 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.692e-05/0.2681, allocations: 7.984 kB / 427.7 MB, free: 9.602 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.957e-05/0.2681, allocations: 42.56 kB / 427.8 MB, free: 9.551 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.392e-06/0.2681, allocations: 0 / 427.8 MB, free: 9.551 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005101/0.2686, allocations: 189.5 kB / 427.9 MB, free: 9.359 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.685e-05/0.2687, allocations: 114.8 kB / 428.1 MB, free: 9.223 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001165/0.2688, allocations: 138.2 kB / 428.2 MB, free: 9.074 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/0.2689, allocations: 25.7 kB / 428.2 MB, free: 9.043 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.373e-05/0.2689, allocations: 119.9 kB / 428.3 MB, free: 8.922 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.661e-05/0.269, allocations: 23.84 kB / 428.4 MB, free: 8.898 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.244e-05/0.269, allocations: 37.7 kB / 428.4 MB, free: 8.855 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.2691, allocations: 318.8 kB / 428.7 MB, free: 8.535 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/0.2692, allocations: 39.97 kB / 428.7 MB, free: 8.496 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000175/0.2694, allocations: 129.7 kB / 428.9 MB, free: 8.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002991/0.2697, allocations: 189.5 kB / 429.1 MB, free: 8.086 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2697, allocations: 0 / 429.1 MB, free: 8.086 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003721/0.2701, allocations: 201.3 kB / 429.3 MB, free: 7.883 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.2701, allocations: 8 kB / 429.3 MB, free: 7.875 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.2701, allocations: 4 kB / 429.3 MB, free: 7.871 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.2701, allocations: 4 kB / 429.3 MB, free: 7.867 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001634/0.2703, allocations: 43.91 kB / 429.3 MB, free: 7.824 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.113e-05/0.2703, allocations: 8 kB / 429.3 MB, free: 7.816 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001102/0.2704, allocations: 28.17 kB / 429.4 MB, free: 7.789 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.3e-05/0.2704, allocations: 15.94 kB / 429.4 MB, free: 7.773 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 9.958e-05/0.2705, allocations: 125.8 kB / 429.5 MB, free: 7.641 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001531/0.2707, allocations: 89.52 kB / 429.6 MB, free: 7.547 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.285e-05/0.2708, allocations: 16.72 kB / 429.6 MB, free: 7.527 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.189e-06/0.2708, allocations: 4 kB / 429.6 MB, free: 7.523 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.2708, allocations: 0 / 429.6 MB, free: 7.523 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.2708, allocations: 3.984 kB / 429.6 MB, free: 7.52 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002127/0.271, allocations: 133.2 kB / 429.7 MB, free: 7.359 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.145e-06/0.271, allocations: 4 kB / 429.7 MB, free: 7.355 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001771/0.2712, allocations: 44.33 kB / 429.8 MB, free: 7.312 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.2712, allocations: 3.938 kB / 429.8 MB, free: 7.309 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.451e-05/0.2712, allocations: 7.984 kB / 429.8 MB, free: 7.301 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.2712, allocations: 4 kB / 429.8 MB, free: 7.297 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2712, allocations: 0 / 429.8 MB, free: 7.297 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005247/0.2717, allocations: 382.8 kB / 430.2 MB, free: 6.906 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.504e-05/0.2717, allocations: 15.86 kB / 430.2 MB, free: 6.891 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.252e-05/0.2718, allocations: 7.984 kB / 430.2 MB, free: 6.883 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000134/0.2719, allocations: 12.06 kB / 430.2 MB, free: 6.871 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.588e-05/0.2719, allocations: 3.984 kB / 430.2 MB, free: 6.867 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.142e-06/0.2719, allocations: 4 kB / 430.2 MB, free: 6.863 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.644e-05/0.272, allocations: 103.3 kB / 430.3 MB, free: 6.762 MB / 334.1 MB Notification: Performance of sort global known variables: time 5e-08/0.272, allocations: 0 / 430.3 MB, free: 6.762 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003182/0.2723, allocations: 27.95 kB / 430.3 MB, free: 6.734 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 9.573e-05/0.2724, allocations: 99.25 kB / 430.4 MB, free: 6.629 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003201/0.2727, allocations: 123.9 kB / 430.6 MB, free: 6.508 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2727, allocations: 0 / 430.6 MB, free: 6.508 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.319e-05/0.2728, allocations: 27.92 kB / 430.6 MB, free: 6.48 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004654/0.2733, allocations: 57.44 kB / 430.6 MB, free: 6.426 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007085/0.274, allocations: 403.1 kB / 431 MB, free: 6 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.512e-05/0.2741, allocations: 97.61 kB / 431.1 MB, free: 5.887 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.297e-05/0.2741, allocations: 13.08 kB / 431.1 MB, free: 5.875 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.906e-05/0.2742, allocations: 15.44 kB / 431.2 MB, free: 5.859 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2742, allocations: 0 / 431.2 MB, free: 5.859 MB / 334.1 MB Notification: Performance of Templates: time 0.004191/0.2784, allocations: 1.372 MB / 432.5 MB, free: 4.523 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.523415395990014]