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.001377/0.001377, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.001594/0.001594, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.531/1.531, allocations: 230.6 MB / 258.3 MB, free: 7.996 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.001597/0.001597, allocations: 51.91 kB / 379 MB, free: 2.766 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3276/0.3292, allocations: 53.37 MB / 432.4 MB, free: 6.977 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.004134/0.3334, allocations: 2.054 MB / 434.4 MB, free: 4.922 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001214/0.3346, allocations: 0.5687 MB / 435 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001395/0.3347, allocations: 7.938 kB / 435 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001337/0.3349, allocations: 15.8 kB / 435 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001747/0.335, allocations: 35.72 kB / 435.1 MB, free: 4.289 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002777/0.3353, allocations: 47.88 kB / 435.1 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002142/0.3355, allocations: 131.6 kB / 435.2 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001677/0.3357, allocations: 41.56 kB / 435.3 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.78e-05/0.3358, allocations: 55.78 kB / 435.3 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001047/0.3359, allocations: 55.72 kB / 435.4 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.817e-05/0.3359, allocations: 12 kB / 435.4 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.479e-05/0.336, allocations: 8 kB / 435.4 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.075e-05/0.336, allocations: 31.84 kB / 435.4 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.805e-05/0.3361, allocations: 55.72 kB / 435.5 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002594/0.3363, allocations: 136.6 kB / 435.6 MB, free: 3.723 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.3363, allocations: 0 / 435.6 MB, free: 3.723 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3363, allocations: 4 kB / 435.6 MB, free: 3.719 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.3363, allocations: 0 / 435.6 MB, free: 3.719 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.0006824/0.337, allocations: 353.8 kB / 436 MB, free: 3.344 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.3371, allocations: 12.03 kB / 436 MB, free: 3.332 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.07e-05/0.3371, allocations: 20.83 kB / 436 MB, free: 3.312 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003684/0.3375, allocations: 158.2 kB / 436.2 MB, free: 3.133 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.656e-05/0.3375, allocations: 8.375 kB / 436.2 MB, free: 3.125 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.118e-05/0.3375, allocations: 20.38 kB / 436.2 MB, free: 3.105 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005358/0.3381, allocations: 230.9 kB / 436.4 MB, free: 2.855 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.761e-05/0.3381, allocations: 8 kB / 436.4 MB, free: 2.848 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.732e-05/0.3381, allocations: 4 kB / 436.4 MB, free: 2.844 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.3381, allocations: 4 kB / 436.4 MB, free: 2.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002573/0.3384, allocations: 87.86 kB / 436.5 MB, free: 2.754 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007264/0.3391, allocations: 0.5388 MB / 437 MB, free: 2.156 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003868/0.3395, allocations: 139.8 kB / 437.2 MB, free: 1.992 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001634/0.3397, allocations: 78.62 kB / 437.3 MB, free: 1.906 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.866e-05/0.3397, allocations: 0 / 437.3 MB, free: 1.906 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.151e-05/0.3397, allocations: 38.56 kB / 437.3 MB, free: 1.859 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.283e-06/0.3397, allocations: 0 / 437.3 MB, free: 1.859 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005423/0.3403, allocations: 181.5 kB / 437.5 MB, free: 1.676 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001164/0.3404, allocations: 119.1 kB / 437.6 MB, free: 1.535 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001556/0.3405, allocations: 129.3 kB / 437.7 MB, free: 1.398 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.716e-05/0.3406, allocations: 29.7 kB / 437.7 MB, free: 1.363 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.335e-05/0.3407, allocations: 112.1 kB / 437.9 MB, free: 1.25 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.991e-05/0.3407, allocations: 31.72 kB / 437.9 MB, free: 1.219 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.55e-05/0.3408, allocations: 37.7 kB / 437.9 MB, free: 1.176 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001828/0.3409, allocations: 322.8 kB / 438.2 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001145/0.341, allocations: 39.97 kB / 438.3 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002718/0.3413, allocations: 133.7 kB / 438.4 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003367/0.3417, allocations: 197.4 kB / 438.6 MB, free: 400 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.3417, allocations: 0 / 438.6 MB, free: 400 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004238/0.3421, allocations: 197.4 kB / 438.8 MB, free: 196 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.3421, allocations: 8 kB / 438.8 MB, free: 188 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.3421, allocations: 4 kB / 438.8 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.3421, allocations: 4 kB / 438.8 MB, free: 180 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001566/0.3423, allocations: 43.91 kB / 438.9 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.537e-05/0.3423, allocations: 11.94 kB / 438.9 MB, free: 124 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00011/0.3424, allocations: 23.88 kB / 438.9 MB, free: 100 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.331e-05/0.3424, allocations: 8.25 kB / 438.9 MB, free: 92 kB / 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.0001566/0.3426, allocations: 141.7 kB / 439 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001479/0.3427, allocations: 81.59 kB / 439.1 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.281e-05/0.3428, allocations: 20.7 kB / 439.1 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.024e-06/0.3428, allocations: 8 kB / 439.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.269e-06/0.3428, allocations: 0 / 439.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.3428, allocations: 0 / 439.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000289/0.3431, allocations: 176.6 kB / 439.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.3431, allocations: 4 kB / 439.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001851/0.3433, allocations: 35.92 kB / 439.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.3433, allocations: 4 kB / 439.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.565e-05/0.3433, allocations: 7.984 kB / 439.4 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.3433, allocations: 4 kB / 439.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.3433, allocations: 0 / 439.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005722/0.3439, allocations: 383.4 kB / 439.7 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.881e-05/0.3439, allocations: 16.08 kB / 439.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.291e-05/0.344, allocations: 3.984 kB / 439.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000132/0.3441, allocations: 8 kB / 439.8 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.523e-05/0.3442, allocations: 11.97 kB / 439.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.466e-06/0.3442, allocations: 4 kB / 439.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.395e-05/0.3442, allocations: 99.36 kB / 439.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3442, allocations: 4 kB / 439.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000325/0.3446, allocations: 28 kB / 439.9 MB, free: 14.99 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.0001398/0.3447, allocations: 106.7 kB / 440 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003731/0.3451, allocations: 116.6 kB / 440.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.738e-06/0.3451, allocations: 4.125 kB / 440.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000102/0.3452, allocations: 31.86 kB / 440.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005203/0.3457, allocations: 65.91 kB / 440.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008188/0.3465, allocations: 420.2 kB / 440.6 MB, free: 14.22 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004108/0.3469, allocations: 0.7123 MB / 441.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.722e-05/0.347, allocations: 15.44 kB / 441.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.347, allocations: 0 / 441.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of Templates: time 0.003816/0.3508, allocations: 1.548 MB / 442.9 MB, free: 11.92 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.306268981890753]