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.001432/0.001432, allocations: 114.2 kB / 19.04 MB, free: 3.281 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.001429/0.001429, allocations: 188.5 kB / 22.21 MB, free: 112 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.41 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.001464/0.001464, allocations: 47.92 kB / 368.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2688/0.2703, allocations: 52.14 MB / 420.8 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003502/0.2738, allocations: 2.038 MB / 422.9 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001021/0.2748, allocations: 0.5414 MB / 423.4 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001094/0.2749, allocations: 4 kB / 423.4 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001206/0.275, allocations: 15.8 kB / 423.4 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001453/0.2751, allocations: 31.72 kB / 423.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002487/0.2754, allocations: 55.88 kB / 423.5 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00019/0.2756, allocations: 115.6 kB / 423.6 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001503/0.2757, allocations: 49.41 kB / 423.7 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.255e-05/0.2758, allocations: 47.8 kB / 423.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.295e-05/0.2759, allocations: 51.77 kB / 423.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.567e-05/0.2759, allocations: 12 kB / 423.8 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.971e-05/0.276, allocations: 12 kB / 423.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.608e-05/0.276, allocations: 27.91 kB / 423.8 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.084e-05/0.2761, allocations: 59.67 kB / 423.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002137/0.2763, allocations: 132.6 kB / 424 MB, free: 11.95 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.065e-05/0.2763, allocations: 3.984 kB / 424 MB, free: 11.95 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.777e-06/0.2763, allocations: 4 kB / 424 MB, free: 11.94 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.159e-06/0.2763, allocations: 0 / 424 MB, free: 11.94 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.0006458/0.2769, allocations: 430.9 kB / 424.5 MB, free: 11.47 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.277, allocations: 11.97 kB / 424.5 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.957e-05/0.277, allocations: 16.84 kB / 424.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003045/0.2773, allocations: 212.1 kB / 424.7 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.543e-05/0.2774, allocations: 12.38 kB / 424.7 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.187e-05/0.2774, allocations: 12.38 kB / 424.7 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005114/0.2779, allocations: 262.2 kB / 425 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.828e-05/0.2779, allocations: 4 kB / 425 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.421e-05/0.2779, allocations: 0 / 425 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.2779, allocations: 4 kB / 425 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002463/0.2782, allocations: 87.88 kB / 425.1 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007125/0.2789, allocations: 0.5882 MB / 425.7 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003672/0.2793, allocations: 147.8 kB / 425.8 MB, free: 9.973 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001568/0.2794, allocations: 74.62 kB / 425.9 MB, free: 9.891 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.287e-05/0.2795, allocations: 4 kB / 425.9 MB, free: 9.887 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.199e-05/0.2795, allocations: 34.56 kB / 425.9 MB, free: 9.844 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.322e-06/0.2795, allocations: 0 / 425.9 MB, free: 9.844 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005321/0.28, allocations: 189.3 kB / 426.1 MB, free: 9.652 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.109e-05/0.2801, allocations: 118.7 kB / 426.2 MB, free: 9.512 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001116/0.2802, allocations: 125.6 kB / 426.3 MB, free: 9.379 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.429e-05/0.2802, allocations: 37.69 kB / 426.4 MB, free: 9.336 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.457e-05/0.2803, allocations: 112.1 kB / 426.5 MB, free: 9.223 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.659e-05/0.2803, allocations: 23.8 kB / 426.5 MB, free: 9.199 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.083e-05/0.2804, allocations: 37.83 kB / 426.5 MB, free: 9.156 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.2805, allocations: 323.2 kB / 426.9 MB, free: 8.832 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001143/0.2807, allocations: 43.97 kB / 426.9 MB, free: 8.789 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001765/0.2808, allocations: 136.7 kB / 427 MB, free: 8.609 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002943/0.2811, allocations: 189.5 kB / 427.2 MB, free: 8.375 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.2811, allocations: 7.938 kB / 427.2 MB, free: 8.367 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003631/0.2815, allocations: 189.2 kB / 427.4 MB, free: 8.176 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.2815, allocations: 8 kB / 427.4 MB, free: 8.168 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.363e-06/0.2815, allocations: 4 kB / 427.4 MB, free: 8.164 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.026e-05/0.2815, allocations: 4 kB / 427.4 MB, free: 8.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001515/0.2817, allocations: 47.91 kB / 427.5 MB, free: 8.113 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.344e-05/0.2817, allocations: 8.406 kB / 427.5 MB, free: 8.105 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001104/0.2818, allocations: 31.81 kB / 427.5 MB, free: 8.074 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.572e-05/0.2818, allocations: 8 kB / 427.5 MB, free: 8.066 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.0001187/0.2819, allocations: 137.7 kB / 427.7 MB, free: 7.922 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001658/0.2821, allocations: 89.59 kB / 427.7 MB, free: 7.828 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.375e-05/0.2822, allocations: 20.7 kB / 427.8 MB, free: 7.801 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.2822, allocations: 0 / 427.8 MB, free: 7.801 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.2822, allocations: 0 / 427.8 MB, free: 7.801 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.2822, allocations: 4 kB / 427.8 MB, free: 7.797 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002895/0.2825, allocations: 205.5 kB / 428 MB, free: 7.547 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.2825, allocations: 0 / 428 MB, free: 7.547 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001803/0.2827, allocations: 39.91 kB / 428 MB, free: 7.508 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.2827, allocations: 0 / 428 MB, free: 7.508 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.787e-05/0.2827, allocations: 8 kB / 428 MB, free: 7.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.2827, allocations: 0 / 428 MB, free: 7.5 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.2827, allocations: 0 / 428 MB, free: 7.5 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005269/0.2832, allocations: 390.3 kB / 428.4 MB, free: 7.102 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.447e-05/0.2833, allocations: 89.08 kB / 428.5 MB, free: 6.996 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.264e-05/0.2833, allocations: 4 kB / 428.5 MB, free: 6.992 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000134/0.2834, allocations: 8 kB / 428.5 MB, free: 6.984 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.391e-05/0.2835, allocations: 4.219 kB / 428.5 MB, free: 6.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.526e-06/0.2835, allocations: 4 kB / 428.5 MB, free: 6.977 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.666e-05/0.2835, allocations: 107.3 kB / 428.6 MB, free: 6.871 MB / 334.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.2835, allocations: 0 / 428.6 MB, free: 6.871 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003201/0.2839, allocations: 31.95 kB / 428.6 MB, free: 6.84 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.0001055/0.284, allocations: 103.2 kB / 428.7 MB, free: 6.73 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003327/0.2843, allocations: 120.7 kB / 428.9 MB, free: 6.613 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2843, allocations: 96 / 428.9 MB, free: 6.613 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.603e-05/0.2844, allocations: 31.86 kB / 428.9 MB, free: 6.582 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004795/0.2849, allocations: 63.88 kB / 428.9 MB, free: 6.52 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007426/0.2856, allocations: 393.4 kB / 429.3 MB, free: 6.102 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003497/0.286, allocations: 0.7123 MB / 430 MB, free: 5.363 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.28e-05/0.286, allocations: 17.08 kB / 430.1 MB, free: 5.348 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.556e-05/0.2861, allocations: 11.44 kB / 430.1 MB, free: 5.336 MB / 334.1 MB Notification: Performance of SimCode: time 4.8e-07/0.2861, allocations: 4 kB / 430.1 MB, free: 5.332 MB / 334.1 MB Notification: Performance of Templates: time 0.004767/0.2908, allocations: 1.278 MB / 431.4 MB, free: 4.066 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.563787907361984]