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.0008273/0.0008273, allocations: 88.28 kB / 21.44 MB, free: 3.129 MB / 18.57 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.003004/0.003004, allocations: 160.2 kB / 24.7 MB, free: 9.441 MB / 18.57 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 0.8733/0.8733, allocations: 177 MB / 204.9 MB, free: 5.703 MB / 186.7 MB " [Timeout remaining time 179] 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 1.593e-06/1.593e-06, allocations: 0 / 325.8 MB, free: 15.37 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.002e-05/3.161e-05, allocations: 3.828 kB / 325.8 MB, free: 15.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.00243/0.002461, allocations: 1.984 MB / 327.7 MB, free: 13.37 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007747/0.003236, allocations: 0.5414 MB / 328.3 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.373e-05/0.00333, allocations: 0 / 328.3 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001095/0.003439, allocations: 23.75 kB / 328.3 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001402/0.003579, allocations: 27.72 kB / 328.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002165/0.003796, allocations: 63.75 kB / 328.4 MB, free: 12.71 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000157/0.003953, allocations: 127.5 kB / 328.5 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001374/0.00409, allocations: 45.5 kB / 328.6 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.097e-05/0.004181, allocations: 67.88 kB / 328.6 MB, free: 12.47 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.731e-05/0.004248, allocations: 43.81 kB / 328.7 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.72e-05/0.004276, allocations: 12 kB / 328.7 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.308e-05/0.004289, allocations: 8 kB / 328.7 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.885e-05/0.004318, allocations: 27.91 kB / 328.7 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.324e-05/0.004361, allocations: 39.91 kB / 328.8 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000172/0.004533, allocations: 131.5 kB / 328.9 MB, free: 12.21 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.004536, allocations: 4 kB / 328.9 MB, free: 12.21 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.785e-06/0.004539, allocations: 4 kB / 328.9 MB, free: 12.2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.004544, allocations: 0 / 328.9 MB, free: 12.2 MB / 298.7 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.0004776/0.005022, allocations: 349.8 kB / 329.2 MB, free: 11.83 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.00506, allocations: 11.98 kB / 329.3 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.233e-05/0.005102, allocations: 16.84 kB / 329.3 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002254/0.005328, allocations: 141.6 kB / 329.4 MB, free: 11.64 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.369e-05/0.005341, allocations: 12.38 kB / 329.4 MB, free: 11.63 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.066e-05/0.005372, allocations: 20.33 kB / 329.4 MB, free: 11.61 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000468/0.00584, allocations: 246.6 kB / 329.7 MB, free: 11.35 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.005853, allocations: 192 / 329.7 MB, free: 11.35 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.598e-05/0.005869, allocations: 8.375 kB / 329.7 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.005877, allocations: 7.938 kB / 329.7 MB, free: 11.33 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000152/0.006029, allocations: 91.75 kB / 329.8 MB, free: 11.24 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004765/0.006505, allocations: 0.4966 MB / 330.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002594/0.006765, allocations: 131.9 kB / 330.4 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.705e-05/0.006852, allocations: 70.62 kB / 330.5 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.307e-05/0.006875, allocations: 4 kB / 330.5 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.931e-05/0.006894, allocations: 38.56 kB / 330.5 MB, free: 10.41 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.773e-06/0.006896, allocations: 7.938 kB / 330.5 MB, free: 10.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003191/0.007215, allocations: 177.6 kB / 330.7 MB, free: 10.23 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.522e-05/0.00727, allocations: 118.7 kB / 330.8 MB, free: 10.09 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.984e-05/0.00735, allocations: 122.1 kB / 330.9 MB, free: 9.953 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.306e-05/0.007363, allocations: 37.69 kB / 331 MB, free: 9.91 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.167e-05/0.007415, allocations: 108.1 kB / 331.1 MB, free: 9.801 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.911e-05/0.007434, allocations: 27.78 kB / 331.1 MB, free: 9.773 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.187e-05/0.007466, allocations: 21.7 kB / 331.1 MB, free: 9.746 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.127e-05/0.007537, allocations: 326.9 kB / 331.4 MB, free: 9.418 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.429e-05/0.007591, allocations: 31.97 kB / 331.5 MB, free: 9.387 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.669e-05/0.007658, allocations: 78.84 kB / 331.6 MB, free: 9.285 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001275/0.007785, allocations: 118.7 kB / 331.7 MB, free: 9.145 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.007788, allocations: 0 / 331.7 MB, free: 9.145 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001596/0.007948, allocations: 137.4 kB / 331.8 MB, free: 9.004 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.007962, allocations: 4 kB / 331.8 MB, free: 9 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.007968, allocations: 8.219 kB / 331.8 MB, free: 8.992 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.00798, allocations: 0 / 331.8 MB, free: 8.992 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.71e-05/0.008047, allocations: 27.98 kB / 331.8 MB, free: 8.965 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.008052, allocations: 0 / 331.8 MB, free: 8.965 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.22e-05/0.008094, allocations: 19.88 kB / 331.9 MB, free: 8.945 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-06/0.008102, allocations: 8 kB / 331.9 MB, free: 8.938 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (12): * Single equations (assignments): 12 * 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 6.934e-05/0.008171, allocations: 129.7 kB / 332 MB, free: 8.801 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.581e-05/0.008257, allocations: 85.52 kB / 332.1 MB, free: 8.711 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.398e-05/0.008311, allocations: 20.77 kB / 332.1 MB, free: 8.695 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.008314, allocations: 8 kB / 332.1 MB, free: 8.688 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.008319, allocations: 0 / 332.1 MB, free: 8.688 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.008322, allocations: 480 / 332.1 MB, free: 8.688 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001449/0.008467, allocations: 141.2 kB / 332.2 MB, free: 8.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.008468, allocations: 0 / 332.2 MB, free: 8.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.619e-05/0.008565, allocations: 39.97 kB / 332.3 MB, free: 8.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.008568, allocations: 4 kB / 332.3 MB, free: 8.477 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.296e-06/0.008577, allocations: 3.938 kB / 332.3 MB, free: 8.473 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.008579, allocations: 3.938 kB / 332.3 MB, free: 8.469 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.008581, allocations: 4 kB / 332.3 MB, free: 8.465 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000312/0.008893, allocations: 383.4 kB / 332.7 MB, free: 8.07 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.689e-05/0.00891, allocations: 15.92 kB / 332.7 MB, free: 8.055 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.369e-05/0.008924, allocations: 0 / 332.7 MB, free: 8.055 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.837e-05/0.008992, allocations: 15.98 kB / 332.7 MB, free: 8.039 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.317e-05/0.009026, allocations: 0 / 332.7 MB, free: 8.039 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.983e-06/0.009033, allocations: 11.98 kB / 332.7 MB, free: 8.027 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.862e-05/0.009071, allocations: 101.9 kB / 332.8 MB, free: 7.93 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009071, allocations: 3.938 kB / 332.8 MB, free: 7.926 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001849/0.009256, allocations: 32 kB / 332.9 MB, free: 7.895 MB / 298.7 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 8.427e-05/0.00934, allocations: 95.25 kB / 332.9 MB, free: 7.789 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001719/0.009512, allocations: 91.81 kB / 333 MB, free: 7.699 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.009514, allocations: 0 / 333 MB, free: 7.699 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.606e-05/0.00956, allocations: 28.42 kB / 333.1 MB, free: 7.672 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003461/0.009906, allocations: 55.98 kB / 333.1 MB, free: 7.617 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004719/0.01038, allocations: 361.1 kB / 333.5 MB, free: 7.223 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.435e-05/0.01044, allocations: 97.3 kB / 333.6 MB, free: 7.109 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.307e-05/0.01048, allocations: 20.5 kB / 333.6 MB, free: 7.09 MB / 298.7 MB Notification: Performance of SimCode: time 5.41e-07/0.01048, allocations: 0 / 333.6 MB, free: 7.09 MB / 298.7 MB Notification: Performance of Templates: time 0.002272/0.01275, allocations: 1.529 MB / 335.1 MB, free: 5.57 MB / 298.7 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.144269397482276]