Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.001555/0.001555, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.00174/0.00174, allocations: 212.7 kB / 23.74 MB, free: 4.656 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.454/1.454, allocations: 230.6 MB / 257.5 MB, free: 8.008 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.ClockedWithDiscreteTextbookController,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.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,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.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001806/0.001806, allocations: 43.92 kB / 378.2 MB, free: 2.656 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.256/0.2578, allocations: 53.36 MB / 431.6 MB, free: 6.949 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003802/0.2616, allocations: 2.041 MB / 433.6 MB, free: 4.906 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001093/0.2627, allocations: 0.5453 MB / 434.2 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001251/0.2628, allocations: 4 kB / 434.2 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001157/0.2629, allocations: 15.8 kB / 434.2 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.827e-05/0.263, allocations: 31.72 kB / 434.2 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002948/0.2633, allocations: 55.88 kB / 434.3 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001995/0.2635, allocations: 115.6 kB / 434.4 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001436/0.2637, allocations: 49.59 kB / 434.5 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001/0.2638, allocations: 51.8 kB / 434.5 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.445e-05/0.2639, allocations: 47.77 kB / 434.6 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.311e-05/0.2639, allocations: 12 kB / 434.6 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.051e-05/0.2639, allocations: 15.94 kB / 434.6 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.578e-05/0.2639, allocations: 27.91 kB / 434.6 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.816e-05/0.264, allocations: 59.67 kB / 434.7 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002127/0.2642, allocations: 124.7 kB / 434.8 MB, free: 3.754 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.2642, allocations: 0 / 434.8 MB, free: 3.754 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.2642, allocations: 0 / 434.8 MB, free: 3.754 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.2642, allocations: 0 / 434.8 MB, free: 3.754 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0006072/0.2648, allocations: 353.8 kB / 435.1 MB, free: 3.379 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.2649, allocations: 16.02 kB / 435.2 MB, free: 3.363 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.606e-05/0.2649, allocations: 16.84 kB / 435.2 MB, free: 3.348 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002582/0.2652, allocations: 150.3 kB / 435.3 MB, free: 3.176 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.429e-05/0.2652, allocations: 8.375 kB / 435.3 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.298e-05/0.2652, allocations: 16.33 kB / 435.3 MB, free: 3.152 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000483/0.2657, allocations: 243.7 kB / 435.6 MB, free: 2.891 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/0.2657, allocations: 3.938 kB / 435.6 MB, free: 2.887 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.566e-05/0.2657, allocations: 12 kB / 435.6 MB, free: 2.875 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.2657, allocations: 0 / 435.6 MB, free: 2.875 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002571/0.266, allocations: 83.88 kB / 435.7 MB, free: 2.793 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006698/0.2667, allocations: 0.5388 MB / 436.2 MB, free: 2.195 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002853/0.2669, allocations: 139.9 kB / 436.4 MB, free: 2.031 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001631/0.2671, allocations: 78.61 kB / 436.4 MB, free: 1.945 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.447e-05/0.2671, allocations: 0 / 436.4 MB, free: 1.945 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.402e-05/0.2672, allocations: 38.5 kB / 436.5 MB, free: 1.898 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.022e-06/0.2672, allocations: 0 / 436.5 MB, free: 1.898 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005162/0.2677, allocations: 177.5 kB / 436.6 MB, free: 1.719 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.406e-05/0.2678, allocations: 114.8 kB / 436.8 MB, free: 1.582 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001128/0.2679, allocations: 126.5 kB / 436.9 MB, free: 1.445 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.899e-05/0.2679, allocations: 29.7 kB / 436.9 MB, free: 1.41 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.741e-05/0.268, allocations: 115.8 kB / 437 MB, free: 1.293 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.804e-05/0.268, allocations: 31.78 kB / 437 MB, free: 1.262 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.185e-05/0.2681, allocations: 33.66 kB / 437.1 MB, free: 1.223 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.2682, allocations: 326.9 kB / 437.4 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001253/0.2684, allocations: 35.97 kB / 437.4 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001831/0.2686, allocations: 128.8 kB / 437.6 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003066/0.2689, allocations: 180.6 kB / 437.7 MB, free: 476 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.2689, allocations: 0 / 437.7 MB, free: 476 kB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000388/0.2692, allocations: 189.6 kB / 437.9 MB, free: 280 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.2693, allocations: 8 kB / 437.9 MB, free: 272 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.2693, allocations: 4 kB / 437.9 MB, free: 268 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.2693, allocations: 7.938 kB / 437.9 MB, free: 260 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001787/0.2695, allocations: 43.91 kB / 438 MB, free: 216 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.2695, allocations: 8 kB / 438 MB, free: 208 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001047/0.2696, allocations: 27.88 kB / 438 MB, free: 180 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.389e-05/0.2696, allocations: 8 kB / 438 MB, free: 172 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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.0001169/0.2697, allocations: 125.8 kB / 438.2 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00016/0.2699, allocations: 85.81 kB / 438.2 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.743e-05/0.2699, allocations: 24.64 kB / 438.3 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.309e-06/0.2699, allocations: 3.984 kB / 438.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.2699, allocations: 4 kB / 438.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.2699, allocations: 0 / 438.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002765/0.2702, allocations: 180.5 kB / 438.4 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.2702, allocations: 0 / 438.4 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001709/0.2704, allocations: 31.98 kB / 438.5 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.2704, allocations: 0 / 438.5 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.599e-05/0.2704, allocations: 15.94 kB / 438.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.2704, allocations: 0 / 438.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2704, allocations: 0 / 438.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005469/0.271, allocations: 382 kB / 438.9 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.925e-05/0.271, allocations: 7.984 kB / 438.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.329e-05/0.271, allocations: 7.938 kB / 438.9 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001391/0.2711, allocations: 11.98 kB / 438.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.364e-05/0.2712, allocations: 4 kB / 438.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.275e-06/0.2712, allocations: 4 kB / 438.9 MB, free: 15.22 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.243e-05/0.2713, allocations: 103.2 kB / 439 MB, free: 15.12 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2713, allocations: 96 / 439 MB, free: 15.12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003235/0.2716, allocations: 31.89 kB / 439 MB, free: 15.09 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 (14): * Single equations (assignments): 14 * 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.0001068/0.2717, allocations: 111.2 kB / 439.1 MB, free: 14.97 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003323/0.272, allocations: 111.8 kB / 439.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.272, allocations: 0.875 kB / 439.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001076/0.2721, allocations: 31.97 kB / 439.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004589/0.2726, allocations: 53.5 kB / 439.3 MB, free: 14.78 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007313/0.2733, allocations: 394.4 kB / 439.7 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003716/0.2737, allocations: 0.7123 MB / 440.4 MB, free: 13.62 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.527e-05/0.2737, allocations: 16.59 kB / 440.4 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.748e-05/0.2738, allocations: 11.44 kB / 440.5 MB, free: 13.6 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2738, allocations: 0 / 440.5 MB, free: 13.6 MB / 350.1 MB Notification: Performance of Templates: time 0.004287/0.2781, allocations: 1.283 MB / 441.7 MB, free: 12.36 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.381724111037329]