Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002157/0.002157, allocations: 107 kB / 19.8 MB, free: 2.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002202/0.002202, allocations: 215.2 kB / 23 MB, free: 5.574 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.546/1.546, allocations: 230.2 MB / 256.2 MB, free: 8.523 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001886/0.001886, allocations: 59.89 kB / 376.5 MB, free: 3.621 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3191/0.321, allocations: 53.32 MB / 429.8 MB, free: 7.547 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003769/0.3247, allocations: 2.058 MB / 431.8 MB, free: 5.477 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00118/0.3259, allocations: 0.561 MB / 432.4 MB, free: 4.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001378/0.3261, allocations: 7.938 kB / 432.4 MB, free: 4.902 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001299/0.3262, allocations: 15.8 kB / 432.4 MB, free: 4.887 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001596/0.3264, allocations: 31.78 kB / 432.4 MB, free: 4.855 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003064/0.3267, allocations: 55.81 kB / 432.5 MB, free: 4.801 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002078/0.3269, allocations: 119.6 kB / 432.6 MB, free: 4.684 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001623/0.327, allocations: 49.38 kB / 432.7 MB, free: 4.633 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001043/0.3271, allocations: 47.8 kB / 432.7 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.986e-05/0.3272, allocations: 55.75 kB / 432.8 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.03e-05/0.3273, allocations: 16 kB / 432.8 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.306e-05/0.3273, allocations: 12 kB / 432.8 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.804e-05/0.3273, allocations: 27.86 kB / 432.8 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.36e-05/0.3274, allocations: 51.73 kB / 432.9 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002615/0.3277, allocations: 140.6 kB / 433 MB, free: 4.293 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.3277, allocations: 0 / 433 MB, free: 4.293 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3277, allocations: 4 kB / 433 MB, free: 4.289 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.665e-06/0.3277, allocations: 0 / 433 MB, free: 4.289 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.0007555/0.3284, allocations: 430.9 kB / 433.4 MB, free: 3.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/0.3285, allocations: 8.031 kB / 433.4 MB, free: 3.812 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.165e-05/0.3285, allocations: 20.83 kB / 433.5 MB, free: 3.793 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003012/0.3288, allocations: 208.1 kB / 433.7 MB, free: 3.551 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.764e-05/0.3288, allocations: 12.38 kB / 433.7 MB, free: 3.539 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.13e-05/0.3289, allocations: 16.36 kB / 433.7 MB, free: 3.523 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005424/0.3294, allocations: 254.9 kB / 433.9 MB, free: 3.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.3294, allocations: 3.938 kB / 433.9 MB, free: 3.246 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.728e-05/0.3295, allocations: 4 kB / 433.9 MB, free: 3.242 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.3295, allocations: 4 kB / 434 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002819/0.3298, allocations: 91.88 kB / 434 MB, free: 3.148 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007307/0.3305, allocations: 0.5921 MB / 434.6 MB, free: 2.484 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003611/0.3308, allocations: 143.9 kB / 434.8 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001655/0.331, allocations: 66.64 kB / 434.8 MB, free: 2.242 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.962e-05/0.331, allocations: 4 kB / 434.8 MB, free: 2.238 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.037e-05/0.3311, allocations: 38.56 kB / 434.9 MB, free: 2.191 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.302e-06/0.3311, allocations: 0 / 434.9 MB, free: 2.191 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005368/0.3316, allocations: 185.4 kB / 435.1 MB, free: 2.004 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.61e-05/0.3317, allocations: 114.8 kB / 435.2 MB, free: 1.867 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001195/0.3318, allocations: 129.2 kB / 435.3 MB, free: 1.73 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.191e-05/0.3318, allocations: 33.83 kB / 435.3 MB, free: 1.691 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.097e-05/0.3319, allocations: 116.1 kB / 435.4 MB, free: 1.574 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.92e-05/0.3319, allocations: 27.78 kB / 435.5 MB, free: 1.547 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.521e-05/0.332, allocations: 33.72 kB / 435.5 MB, free: 1.508 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.3321, allocations: 322.8 kB / 435.8 MB, free: 1.184 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001133/0.3323, allocations: 35.97 kB / 435.9 MB, free: 1.148 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001991/0.3325, allocations: 141.2 kB / 436 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003451/0.3328, allocations: 185.5 kB / 436.2 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.3328, allocations: 4 kB / 436.2 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003779/0.3332, allocations: 197.2 kB / 436.4 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.3332, allocations: 8 kB / 436.4 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.874e-06/0.3332, allocations: 4.469 kB / 436.4 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.033e-05/0.3332, allocations: 8 kB / 436.4 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001525/0.3334, allocations: 47.91 kB / 436.4 MB, free: 476 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/0.3334, allocations: 4 kB / 436.4 MB, free: 472 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001074/0.3335, allocations: 24.25 kB / 436.5 MB, free: 448 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.129e-05/0.3335, allocations: 8 kB / 436.5 MB, free: 440 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.0001348/0.3337, allocations: 137.7 kB / 436.6 MB, free: 292 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001649/0.3338, allocations: 89.75 kB / 436.7 MB, free: 196 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.889e-05/0.3339, allocations: 24.7 kB / 436.7 MB, free: 164 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.3339, allocations: 3.984 kB / 436.7 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.3339, allocations: 0 / 436.7 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.3339, allocations: 4 kB / 436.7 MB, free: 156 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003274/0.3343, allocations: 217.5 kB / 436.9 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.3343, allocations: 0 / 436.9 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001784/0.3344, allocations: 39.91 kB / 437 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.3344, allocations: 0 / 437 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.802e-05/0.3345, allocations: 8 kB / 437 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.3345, allocations: 0 / 437 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3345, allocations: 0 / 437 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005624/0.335, allocations: 383.4 kB / 437.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.69e-05/0.3351, allocations: 89.05 kB / 437.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.424e-05/0.3351, allocations: 8 kB / 437.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001314/0.3352, allocations: 16.05 kB / 437.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.927e-05/0.3353, allocations: 0 / 437.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.847e-06/0.3353, allocations: 4 kB / 437.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.932e-05/0.3354, allocations: 103.2 kB / 437.6 MB, free: 15.21 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3354, allocations: 0 / 437.6 MB, free: 15.21 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003103/0.3357, allocations: 28 kB / 437.6 MB, free: 15.19 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.0001108/0.3358, allocations: 99.23 kB / 437.7 MB, free: 15.08 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003396/0.3361, allocations: 119.8 kB / 437.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3361, allocations: 0 / 437.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.471e-05/0.3362, allocations: 35.84 kB / 437.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004773/0.3367, allocations: 61.25 kB / 437.9 MB, free: 14.87 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000745/0.3374, allocations: 389.5 kB / 438.3 MB, free: 14.46 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003949/0.3378, allocations: 0.7201 MB / 439 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.59e-05/0.3379, allocations: 17.02 kB / 439 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.034e-05/0.3379, allocations: 11.44 kB / 439 MB, free: 13.68 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3379, allocations: 0 / 439 MB, free: 13.68 MB / 350.1 MB Notification: Performance of Templates: time 0.004335/0.3423, allocations: 1.297 MB / 440.3 MB, free: 12.41 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.641741333529353]