Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.001348/0.001348, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.001466/0.001466, allocations: 212 kB / 24.54 MB, free: 4.016 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.425/1.425, allocations: 230.3 MB / 258 MB, free: 8.273 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.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001944/0.001944, allocations: 63.89 kB / 378.7 MB, free: 2.816 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2547/0.2567, allocations: 53.36 MB / 432.1 MB, free: 7.094 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003448/0.2601, allocations: 2.074 MB / 434.2 MB, free: 5.016 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001092/0.2612, allocations: 0.6193 MB / 434.8 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001084/0.2613, allocations: 7.938 kB / 434.8 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001092/0.2615, allocations: 15.8 kB / 434.8 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001622/0.2616, allocations: 35.72 kB / 434.8 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002678/0.2619, allocations: 75.72 kB / 434.9 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001892/0.2621, allocations: 119.6 kB / 435 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001464/0.2622, allocations: 46.05 kB / 435.1 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.023e-05/0.2623, allocations: 55.72 kB / 435.1 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.248e-05/0.2624, allocations: 63.7 kB / 435.2 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.211e-05/0.2624, allocations: 12 kB / 435.2 MB, free: 3.961 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.252e-05/0.2625, allocations: 8 kB / 435.2 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.757e-05/0.2625, allocations: 35.84 kB / 435.3 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.915e-05/0.2626, allocations: 75.59 kB / 435.3 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002135/0.2628, allocations: 133.1 kB / 435.5 MB, free: 3.719 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.2628, allocations: 0 / 435.5 MB, free: 3.719 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2628, allocations: 0 / 435.5 MB, free: 3.719 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.2628, allocations: 0 / 435.5 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.000617/0.2635, allocations: 389.5 kB / 435.8 MB, free: 3.309 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.187e-05/0.2635, allocations: 12.03 kB / 435.8 MB, free: 3.297 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.67e-05/0.2635, allocations: 20.8 kB / 435.9 MB, free: 3.277 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002617/0.2638, allocations: 173.2 kB / 436 MB, free: 3.086 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.442e-05/0.2638, allocations: 8.375 kB / 436 MB, free: 3.078 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.244e-05/0.2638, allocations: 12.38 kB / 436.1 MB, free: 3.066 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000528/0.2644, allocations: 254.3 kB / 436.3 MB, free: 2.797 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.2644, allocations: 0 / 436.3 MB, free: 2.797 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.558e-05/0.2644, allocations: 4 kB / 436.3 MB, free: 2.793 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.2644, allocations: 11.94 kB / 436.3 MB, free: 2.781 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002697/0.2647, allocations: 87.88 kB / 436.4 MB, free: 2.695 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006691/0.2653, allocations: 0.5466 MB / 437 MB, free: 2.086 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003532/0.2657, allocations: 139.8 kB / 437.1 MB, free: 1.922 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001693/0.2659, allocations: 74.62 kB / 437.2 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.261e-05/0.2659, allocations: 0 / 437.2 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.634e-05/0.2659, allocations: 38.56 kB / 437.2 MB, free: 1.793 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.032e-06/0.2659, allocations: 3.938 kB / 437.2 MB, free: 1.789 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005706/0.2665, allocations: 189.3 kB / 437.4 MB, free: 1.598 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.828e-05/0.2666, allocations: 110.8 kB / 437.5 MB, free: 1.465 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001513/0.2667, allocations: 167 kB / 437.7 MB, free: 1.293 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.898e-05/0.2667, allocations: 25.7 kB / 437.7 MB, free: 1.262 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.726e-05/0.2668, allocations: 116.4 kB / 437.8 MB, free: 1.145 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.922e-05/0.2668, allocations: 31.78 kB / 437.8 MB, free: 1.113 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.735e-05/0.2669, allocations: 37.72 kB / 437.9 MB, free: 1.07 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.267, allocations: 318.8 kB / 438.2 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001218/0.2672, allocations: 35.97 kB / 438.2 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001908/0.2673, allocations: 141.3 kB / 438.4 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003271/0.2677, allocations: 189.5 kB / 438.5 MB, free: 304 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.2677, allocations: 0 / 438.5 MB, free: 304 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003942/0.2681, allocations: 201.5 kB / 438.7 MB, free: 96 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.2681, allocations: 12.09 kB / 438.7 MB, free: 84 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.024e-06/0.2681, allocations: 4 kB / 438.8 MB, free: 80 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.2681, allocations: 4 kB / 438.8 MB, free: 76 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001576/0.2683, allocations: 47.92 kB / 438.8 MB, free: 28 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.2683, allocations: 7.984 kB / 438.8 MB, free: 20 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001102/0.2684, allocations: 20.12 kB / 438.8 MB, free: 0 / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.796e-05/0.2684, allocations: 8.047 kB / 438.8 MB, free: 15.99 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.0001206/0.2685, allocations: 141.7 kB / 439 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001599/0.2687, allocations: 97.53 kB / 439.1 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.766e-05/0.2688, allocations: 24.69 kB / 439.1 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.2688, allocations: 0 / 439.1 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.2688, allocations: 4.469 kB / 439.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.2688, allocations: 0 / 439.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002817/0.2691, allocations: 188.5 kB / 439.3 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.2691, allocations: 0 / 439.3 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001864/0.2692, allocations: 43.84 kB / 439.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.2692, allocations: 3.938 kB / 439.3 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.381e-05/0.2693, allocations: 8 kB / 439.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.2693, allocations: 4 kB / 439.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.2693, allocations: 4 kB / 439.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005691/0.2698, allocations: 381.9 kB / 439.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.211e-05/0.2699, allocations: 35.89 kB / 439.8 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.193e-05/0.2699, allocations: 0 / 439.8 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001454/0.2701, allocations: 11.98 kB / 439.8 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.087e-05/0.2701, allocations: 4 kB / 439.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.408e-06/0.2701, allocations: 4 kB / 439.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.178e-05/0.2702, allocations: 119.2 kB / 439.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2702, allocations: 0 / 439.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003248/0.2705, allocations: 28 kB / 439.9 MB, free: 14.84 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.0001078/0.2707, allocations: 103.8 kB / 440 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003451/0.271, allocations: 119.7 kB / 440.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.271, allocations: 0.9375 kB / 440.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001047/0.2711, allocations: 31.91 kB / 440.2 MB, free: 14.58 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004978/0.2716, allocations: 63.98 kB / 440.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007447/0.2723, allocations: 434 kB / 440.7 MB, free: 14.06 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003391/0.2727, allocations: 0.7201 MB / 441.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.852e-05/0.2727, allocations: 9.422 kB / 441.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.776e-05/0.2728, allocations: 15.44 kB / 441.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2728, allocations: 0 / 441.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of Templates: time 0.004622/0.2774, allocations: 1.46 MB / 442.9 MB, free: 11.87 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.363360213115811]