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.0009985/0.0009985, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.001146/0.001146, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 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 1.023/1.023, allocations: 177 MB / 204.8 MB, free: 5.574 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.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 1.262e-06/1.262e-06, allocations: 0 / 272.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.061e-05/2.187e-05, allocations: 2.312 kB / 272.9 MB, free: 1.469 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002561/0.002583, allocations: 2.093 MB / 275 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008993/0.003483, allocations: 0.5879 MB / 275.6 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001271/0.00361, allocations: 8 kB / 275.6 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001387/0.003748, allocations: 23.73 kB / 275.6 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002171/0.003965, allocations: 31.72 kB / 275.6 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003234/0.004289, allocations: 63.8 kB / 275.7 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002056/0.004494, allocations: 139.4 kB / 275.8 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001493/0.004644, allocations: 38.09 kB / 275.9 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001151/0.004759, allocations: 71.88 kB / 275.9 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.559e-05/0.004835, allocations: 47.75 kB / 276 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.188e-05/0.004866, allocations: 12 kB / 276 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.897e-05/0.004885, allocations: 12 kB / 276 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.758e-05/0.004943, allocations: 31.91 kB / 276 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.844e-05/0.004991, allocations: 47.84 kB / 276.1 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001751/0.005166, allocations: 103.6 kB / 276.2 MB, free: 14.14 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.324e-06/0.005169, allocations: 0 / 276.2 MB, free: 14.14 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.00517, allocations: 0 / 276.2 MB, free: 14.14 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.217e-06/0.005174, allocations: 0 / 276.2 MB, free: 14.14 MB / 266.7 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.000467/0.005641, allocations: 479.9 kB / 276.6 MB, free: 13.64 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.005678, allocations: 11.98 kB / 276.7 MB, free: 13.63 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.176e-05/0.005729, allocations: 36.78 kB / 276.7 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001863/0.005916, allocations: 168.3 kB / 276.9 MB, free: 13.4 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.239e-05/0.005928, allocations: 8.375 kB / 276.9 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.794e-05/0.005956, allocations: 12.38 kB / 276.9 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003351/0.006291, allocations: 247.7 kB / 277.1 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.006302, allocations: 192 / 277.1 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.346e-05/0.006315, allocations: 12.36 kB / 277.1 MB, free: 13.1 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.618e-06/0.006325, allocations: 7.938 kB / 277.1 MB, free: 13.09 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.239e-05/0.006397, allocations: 39.91 kB / 277.2 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000484/0.006881, allocations: 0.6407 MB / 277.8 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002241/0.007105, allocations: 145.3 kB / 278 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.721e-05/0.007173, allocations: 59.12 kB / 278 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.303e-05/0.007196, allocations: 4 kB / 278 MB, free: 12.1 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.775e-05/0.007223, allocations: 41.39 kB / 278.1 MB, free: 12.05 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.954e-06/0.007225, allocations: 4 kB / 278.1 MB, free: 12.05 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002694/0.007495, allocations: 129.4 kB / 278.2 MB, free: 11.91 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.622e-05/0.007561, allocations: 110.8 kB / 278.3 MB, free: 11.78 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001244/0.007685, allocations: 217.8 kB / 278.5 MB, free: 11.55 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.421e-05/0.0077, allocations: 29.7 kB / 278.5 MB, free: 11.52 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.276e-05/0.007772, allocations: 159.3 kB / 278.7 MB, free: 11.36 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.834e-05/0.007801, allocations: 27.78 kB / 278.7 MB, free: 11.33 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.542e-05/0.007846, allocations: 31.38 kB / 278.8 MB, free: 11.29 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.007983, allocations: 0.4961 MB / 279.3 MB, free: 10.78 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.445e-05/0.008007, allocations: 7.984 kB / 279.3 MB, free: 10.77 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.393e-05/0.008061, allocations: 93.55 kB / 279.4 MB, free: 10.65 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.305e-05/0.008144, allocations: 101.4 kB / 279.5 MB, free: 10.52 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.008147, allocations: 0 / 279.5 MB, free: 10.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000112/0.008259, allocations: 109.4 kB / 279.6 MB, free: 10.4 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.008274, allocations: 8 kB / 279.6 MB, free: 10.39 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.008279, allocations: 0 / 279.6 MB, free: 10.39 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.008294, allocations: 4 kB / 279.6 MB, free: 10.39 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.77e-05/0.008362, allocations: 23.98 kB / 279.6 MB, free: 10.37 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.092e-06/0.008368, allocations: 4 kB / 279.6 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.865e-05/0.008406, allocations: 19.86 kB / 279.6 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.424e-06/0.008414, allocations: 4 kB / 279.6 MB, free: 10.34 MB / 266.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 7.337e-05/0.008487, allocations: 168.7 kB / 279.8 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.837e-05/0.008576, allocations: 89.53 kB / 279.9 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.725e-05/0.008623, allocations: 16.78 kB / 279.9 MB, free: 10.05 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.008626, allocations: 4.219 kB / 279.9 MB, free: 10.05 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.008631, allocations: 4 kB / 279.9 MB, free: 10.04 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.008637, allocations: 3.984 kB / 279.9 MB, free: 10.04 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001564/0.008793, allocations: 152.5 kB / 280.1 MB, free: 9.855 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.225e-06/0.008795, allocations: 4 kB / 280.1 MB, free: 9.852 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.996e-05/0.008885, allocations: 35.97 kB / 280.1 MB, free: 9.816 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.008887, allocations: 0 / 280.1 MB, free: 9.816 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.616e-05/0.008904, allocations: 4 kB / 280.1 MB, free: 9.812 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.008906, allocations: 11.94 kB / 280.1 MB, free: 9.801 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-06/0.008907, allocations: 0 / 280.1 MB, free: 9.801 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002489/0.009156, allocations: 410.6 kB / 280.5 MB, free: 9.375 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.606e-05/0.009192, allocations: 23.88 kB / 280.5 MB, free: 9.352 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.553e-05/0.009207, allocations: 8 kB / 280.5 MB, free: 9.344 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.164e-05/0.009269, allocations: 11.98 kB / 280.6 MB, free: 9.332 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.026e-05/0.009299, allocations: 0 / 280.6 MB, free: 9.332 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.11e-05/0.00931, allocations: 11.92 kB / 280.6 MB, free: 9.32 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.498e-05/0.009365, allocations: 152 kB / 280.7 MB, free: 9.172 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009365, allocations: 0 / 280.7 MB, free: 9.172 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001991/0.009564, allocations: 35.92 kB / 280.7 MB, free: 9.137 MB / 266.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 7.124e-05/0.009636, allocations: 99.23 kB / 280.8 MB, free: 9.031 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001369/0.009773, allocations: 67.53 kB / 280.9 MB, free: 8.961 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.009774, allocations: 3.938 kB / 280.9 MB, free: 8.957 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.378e-05/0.009798, allocations: 15.69 kB / 280.9 MB, free: 8.938 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003343/0.01013, allocations: 55.75 kB / 281 MB, free: 8.883 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006428/0.01078, allocations: 383.5 kB / 281.4 MB, free: 8.473 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.102e-05/0.01083, allocations: 75.33 kB / 281.4 MB, free: 8.379 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.93e-05/0.01086, allocations: 8.641 kB / 281.4 MB, free: 8.371 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.27e-05/0.01089, allocations: 16.5 kB / 281.5 MB, free: 8.355 MB / 266.7 MB Notification: Performance of SimCode: time 7.51e-07/0.01089, allocations: 4 kB / 281.5 MB, free: 8.352 MB / 266.7 MB Notification: Performance of Templates: time 0.003379/0.01427, allocations: 1.428 MB / 282.9 MB, free: 6.988 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.74073081696406]