Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.001316/0.001316, allocations: 115.1 kB / 18.46 MB, free: 4.543 MB / 14.72 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.001383/0.001383, allocations: 215.2 kB / 21.42 MB, free: 1.582 MB / 14.72 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 1.438/1.438, allocations: 230.6 MB / 254.8 MB, free: 15.06 MB / 206.1 MB " [Timeout remaining time 178] 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.ClockedWithDiscreteController,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.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.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001534, allocations: 47.92 kB / 374.1 MB, free: 9.812 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09926/0.1008, allocations: 53.34 MB / 427.5 MB, free: 4.379 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003425/0.1042, allocations: 2.017 MB / 429.5 MB, free: 2.348 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00102/0.1052, allocations: 0.5687 MB / 430.1 MB, free: 1.773 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.75e-05/0.1053, allocations: 4 kB / 430.1 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001191/0.1055, allocations: 19.8 kB / 430.1 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001418/0.1056, allocations: 35.66 kB / 430.1 MB, free: 1.715 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002265/0.1058, allocations: 51.88 kB / 430.2 MB, free: 1.664 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001808/0.106, allocations: 123.6 kB / 430.3 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001524/0.1062, allocations: 41.42 kB / 430.3 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001027/0.1063, allocations: 51.78 kB / 430.4 MB, free: 1.449 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.199e-05/0.1063, allocations: 59.69 kB / 430.4 MB, free: 1.391 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.751e-05/0.1064, allocations: 12 kB / 430.4 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.159e-05/0.1064, allocations: 12 kB / 430.5 MB, free: 1.367 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.456e-05/0.1064, allocations: 27.92 kB / 430.5 MB, free: 1.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.338e-05/0.1065, allocations: 59.67 kB / 430.5 MB, free: 1.281 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002023/0.1067, allocations: 123.4 kB / 430.7 MB, free: 1.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.1067, allocations: 0 / 430.7 MB, free: 1.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1067, allocations: 3.938 kB / 430.7 MB, free: 1.156 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.1067, allocations: 4 kB / 430.7 MB, free: 1.152 MB / 350.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.000657/0.1074, allocations: 434.9 kB / 431.1 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.271e-05/0.1074, allocations: 8.031 kB / 431.1 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.649e-05/0.1075, allocations: 20.84 kB / 431.1 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002844/0.1077, allocations: 212.1 kB / 431.3 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.815e-05/0.1078, allocations: 12.38 kB / 431.3 MB, free: 404 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.181e-05/0.1078, allocations: 16.31 kB / 431.4 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005137/0.1083, allocations: 254.2 kB / 431.6 MB, free: 112 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.1083, allocations: 0 / 431.6 MB, free: 112 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.349e-05/0.1083, allocations: 0 / 431.6 MB, free: 112 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/0.1083, allocations: 4 kB / 431.6 MB, free: 108 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002655/0.1086, allocations: 91.86 kB / 431.7 MB, free: 16 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2158/0.3244, allocations: 0.5854 MB / 432.3 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004372/0.3248, allocations: 142.9 kB / 432.4 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001876/0.325, allocations: 73.52 kB / 432.5 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.464e-05/0.325, allocations: 4.781 kB / 432.5 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.606e-05/0.3251, allocations: 39.38 kB / 432.5 MB, free: 11.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 2.475e-06/0.3251, allocations: 1.406 kB / 432.5 MB, free: 11.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006512/0.3257, allocations: 184.7 kB / 432.7 MB, free: 11.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.319e-05/0.3258, allocations: 114.1 kB / 432.8 MB, free: 11.13 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001158/0.3259, allocations: 130.2 kB / 433 MB, free: 11.03 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.776e-05/0.3259, allocations: 30.42 kB / 433 MB, free: 11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.701e-05/0.326, allocations: 112 kB / 433.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.404e-05/0.326, allocations: 28.97 kB / 433.1 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.922e-05/0.3261, allocations: 41.22 kB / 433.2 MB, free: 10.87 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.688e-05/0.3262, allocations: 320.4 kB / 433.5 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001508/0.3264, allocations: 37.44 kB / 433.5 MB, free: 10.56 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000206/0.3266, allocations: 135.4 kB / 433.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000321/0.3269, allocations: 191 kB / 433.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.3269, allocations: 0.9375 kB / 433.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004277/0.3273, allocations: 193 kB / 434 MB, free: 10.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.091e-05/0.3274, allocations: 6.875 kB / 434 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.555e-05/0.3274, allocations: 11.47 kB / 434 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.668e-05/0.3274, allocations: 10.31 kB / 434.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001867/0.3276, allocations: 49.33 kB / 434.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.356e-05/0.3276, allocations: 6.297 kB / 434.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001156/0.3277, allocations: 19.05 kB / 434.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.757e-05/0.3277, allocations: 12.06 kB / 434.1 MB, free: 10.27 MB / 350.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.0001096/0.3278, allocations: 134.7 kB / 434.3 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001647/0.328, allocations: 88.8 kB / 434.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.471e-05/0.3281, allocations: 28.02 kB / 434.4 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.3281, allocations: 2.281 kB / 434.4 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.3281, allocations: 3.188 kB / 434.4 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.3281, allocations: 0 / 434.4 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002576/0.3284, allocations: 201.8 kB / 434.6 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3284, allocations: 0 / 434.6 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001737/0.3285, allocations: 34.34 kB / 434.6 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.526e-06/0.3286, allocations: 2.781 kB / 434.6 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.677e-05/0.3286, allocations: 12.09 kB / 434.6 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.3286, allocations: 0 / 434.6 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3286, allocations: 1.312 kB / 434.6 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005104/0.3291, allocations: 381 kB / 435 MB, free: 9.688 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.635e-05/0.3291, allocations: 98.02 kB / 435.1 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.59e-05/0.3292, allocations: 9.594 kB / 435.1 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001339/0.3293, allocations: 10.27 kB / 435.1 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.553e-05/0.3293, allocations: 3.281 kB / 435.1 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.119e-05/0.3293, allocations: 4.734 kB / 435.1 MB, free: 9.582 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.536e-05/0.3294, allocations: 100 kB / 435.2 MB, free: 9.508 MB / 350.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3294, allocations: 1.062 kB / 435.2 MB, free: 9.508 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003587/0.3298, allocations: 30.48 kB / 435.3 MB, free: 9.504 MB / 350.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.0001245/0.3299, allocations: 109 kB / 435.4 MB, free: 9.418 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003703/0.3303, allocations: 118.6 kB / 435.5 MB, free: 9.414 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.3303, allocations: 0 / 435.5 MB, free: 9.414 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.682e-05/0.3304, allocations: 32.11 kB / 435.5 MB, free: 9.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005098/0.3309, allocations: 56.19 kB / 435.6 MB, free: 9.406 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007734/0.3316, allocations: 420.7 kB / 436 MB, free: 9.109 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001992/0.3318, allocations: 0.715 MB / 436.7 MB, free: 8.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.524e-05/0.3319, allocations: 14.84 kB / 436.7 MB, free: 8.402 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3319, allocations: 0.7656 kB / 436.7 MB, free: 8.402 MB / 350.1 MB Notification: Performance of Templates: time 0.004565/0.3364, allocations: 1.557 MB / 438.3 MB, free: 8.27 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 7.2972465390048455]