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.001582/0.001582, allocations: 107 kB / 21.18 MB, free: 0.6484 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.001775/0.001775, allocations: 213.3 kB / 24.48 MB, free: 3.941 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.442/1.442, allocations: 230.6 MB / 258.2 MB, free: 7.758 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.001548/0.001548, allocations: 47.92 kB / 378.9 MB, free: 2.484 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2584/0.26, allocations: 53.37 MB / 432.3 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003377/0.2634, allocations: 1.985 MB / 434.3 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001023/0.2644, allocations: 0.5298 MB / 434.8 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.656e-05/0.2645, allocations: 0 / 434.8 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001066/0.2646, allocations: 23.73 kB / 434.8 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001485/0.2647, allocations: 39.7 kB / 434.9 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002346/0.265, allocations: 51.88 kB / 434.9 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001824/0.2652, allocations: 123.6 kB / 435.1 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001429/0.2653, allocations: 48.52 kB / 435.1 MB, free: 3.922 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.196e-05/0.2654, allocations: 47.84 kB / 435.2 MB, free: 3.875 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.916e-05/0.2655, allocations: 59.66 kB / 435.2 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.489e-05/0.2655, allocations: 8 kB / 435.2 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.395e-05/0.2655, allocations: 12 kB / 435.2 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.332e-05/0.2656, allocations: 27.91 kB / 435.3 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.488e-05/0.2656, allocations: 51.72 kB / 435.3 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001996/0.2658, allocations: 131.2 kB / 435.4 MB, free: 3.594 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.2658, allocations: 0 / 435.4 MB, free: 3.594 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.2658, allocations: 0 / 435.4 MB, free: 3.594 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.2658, allocations: 0 / 435.4 MB, free: 3.594 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.000627/0.2665, allocations: 357.8 kB / 435.8 MB, free: 3.215 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.246e-05/0.2665, allocations: 8.031 kB / 435.8 MB, free: 3.207 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.015e-05/0.2665, allocations: 20.83 kB / 435.8 MB, free: 3.188 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002683/0.2668, allocations: 158.2 kB / 436 MB, free: 3.008 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.533e-05/0.2668, allocations: 16.38 kB / 436 MB, free: 2.992 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.75e-05/0.2669, allocations: 12.38 kB / 436 MB, free: 2.98 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005284/0.2674, allocations: 238.9 kB / 436.2 MB, free: 2.723 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.2674, allocations: 7.875 kB / 436.2 MB, free: 2.715 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.621e-05/0.2674, allocations: 4 kB / 436.2 MB, free: 2.711 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.2674, allocations: 4 kB / 436.2 MB, free: 2.707 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002687/0.2677, allocations: 91.86 kB / 436.3 MB, free: 2.617 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005931/0.2683, allocations: 488.4 kB / 436.8 MB, free: 2.094 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003758/0.2687, allocations: 143.8 kB / 437 MB, free: 1.926 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001911/0.2689, allocations: 70.62 kB / 437 MB, free: 1.848 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.2689, allocations: 11.92 kB / 437 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.057e-05/0.2689, allocations: 46.5 kB / 437.1 MB, free: 1.781 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.292e-06/0.2689, allocations: 0 / 437.1 MB, free: 1.781 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005486/0.2695, allocations: 177.4 kB / 437.3 MB, free: 1.602 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.461e-05/0.2696, allocations: 114.8 kB / 437.4 MB, free: 1.465 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001205/0.2697, allocations: 132.7 kB / 437.5 MB, free: 1.324 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.05e-05/0.2697, allocations: 29.7 kB / 437.5 MB, free: 1.289 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.349e-05/0.2698, allocations: 115.9 kB / 437.6 MB, free: 1.172 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.246e-05/0.2698, allocations: 23.84 kB / 437.7 MB, free: 1.148 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.926e-05/0.2699, allocations: 41.83 kB / 437.7 MB, free: 1.102 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.27, allocations: 318.8 kB / 438 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001328/0.2701, allocations: 39.97 kB / 438 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001895/0.2703, allocations: 129.7 kB / 438.2 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003215/0.2706, allocations: 189.5 kB / 438.4 MB, free: 340 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.2706, allocations: 4 kB / 438.4 MB, free: 336 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003982/0.271, allocations: 197.1 kB / 438.6 MB, free: 132 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.2711, allocations: 4.469 kB / 438.6 MB, free: 128 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.2711, allocations: 11.94 kB / 438.6 MB, free: 116 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.2711, allocations: 8 kB / 438.6 MB, free: 108 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000158/0.2712, allocations: 43.97 kB / 438.6 MB, free: 64 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.368e-05/0.2712, allocations: 7.938 kB / 438.6 MB, free: 56 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001094/0.2714, allocations: 28.25 kB / 438.7 MB, free: 28 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.329e-05/0.2714, allocations: 8 kB / 438.7 MB, free: 20 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.0001335/0.2715, allocations: 137.7 kB / 438.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001642/0.2717, allocations: 93.45 kB / 438.9 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.713e-05/0.2717, allocations: 20.72 kB / 438.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.131e-06/0.2717, allocations: 4 kB / 438.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.2717, allocations: 0 / 438.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.2718, allocations: 3.984 kB / 438.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002183/0.272, allocations: 129.2 kB / 439 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.272, allocations: 4 kB / 439.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00019/0.2722, allocations: 31.98 kB / 439.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.422e-06/0.2722, allocations: 7.938 kB / 439.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/0.2722, allocations: 3.984 kB / 439.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.979e-06/0.2722, allocations: 4 kB / 439.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2722, allocations: 0 / 439.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005646/0.2728, allocations: 383.4 kB / 439.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.613e-05/0.2728, allocations: 20.05 kB / 439.5 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.821e-05/0.2728, allocations: 11.98 kB / 439.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001433/0.273, allocations: 4 kB / 439.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.16e-05/0.273, allocations: 7.969 kB / 439.5 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.267e-05/0.273, allocations: 8 kB / 439.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.908e-05/0.2731, allocations: 98.5 kB / 439.6 MB, free: 15 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2731, allocations: 4.062 kB / 439.6 MB, free: 15 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003311/0.2734, allocations: 28 kB / 439.7 MB, free: 14.97 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.0001024/0.2735, allocations: 103.2 kB / 439.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003531/0.2739, allocations: 120.6 kB / 439.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2739, allocations: 0 / 439.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001013/0.274, allocations: 28.05 kB / 439.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005029/0.2745, allocations: 58.36 kB / 440 MB, free: 14.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007937/0.2753, allocations: 394.4 kB / 440.3 MB, free: 14.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001107/0.2754, allocations: 105.5 kB / 440.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.592e-05/0.2754, allocations: 13.02 kB / 440.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.401e-05/0.2755, allocations: 19.44 kB / 440.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2755, allocations: 0 / 440.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of Templates: time 0.004458/0.2799, allocations: 1.446 MB / 441.9 MB, free: 12.68 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 -s gbode -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] "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:PI.T,PI.k,PI.x,PI.y,hold1.y_start,load.J,load.phi,load.w,periodicClock.period,periodicClock.useSolver,ramp.duration,ramp.height,ramp.offset,ramp.startTime,time [Calling sys.exit(0), Time elapsed: 4.373059692006791]