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.001976/0.001976, allocations: 103.6 kB / 21.19 MB, free: 0.5234 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.002595/0.002595, allocations: 215.5 kB / 24.48 MB, free: 3.836 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.568/1.568, allocations: 230.5 MB / 258.1 MB, free: 7.777 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.001917/0.001917, allocations: 59.91 kB / 379 MB, free: 2.324 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2252/0.2271, allocations: 53.41 MB / 432.4 MB, free: 6.531 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003407/0.2305, allocations: 2 MB / 434.4 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001073/0.2316, allocations: 0.5804 MB / 435 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001038/0.2317, allocations: 3.938 kB / 435 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001049/0.2318, allocations: 23.8 kB / 435 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001551/0.2319, allocations: 27.72 kB / 435 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002863/0.2322, allocations: 75.8 kB / 435.1 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001859/0.2324, allocations: 131.5 kB / 435.2 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001287/0.2325, allocations: 36.25 kB / 435.2 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.937e-05/0.2326, allocations: 63.72 kB / 435.3 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.546e-05/0.2327, allocations: 55.69 kB / 435.4 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.649e-05/0.2327, allocations: 8 kB / 435.4 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.592e-05/0.2327, allocations: 12 kB / 435.4 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.705e-05/0.2328, allocations: 27.92 kB / 435.4 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.218e-05/0.2329, allocations: 55.67 kB / 435.5 MB, free: 3.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002038/0.2331, allocations: 143.1 kB / 435.6 MB, free: 3.293 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.2331, allocations: 0 / 435.6 MB, free: 3.293 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2331, allocations: 0 / 435.6 MB, free: 3.293 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.2331, allocations: 3.938 kB / 435.6 MB, free: 3.289 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.0006076/0.2337, allocations: 385.6 kB / 436 MB, free: 2.883 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.2337, allocations: 15.98 kB / 436 MB, free: 2.867 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.407e-05/0.2338, allocations: 20.8 kB / 436 MB, free: 2.848 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002334/0.234, allocations: 165.3 kB / 436.2 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.632e-05/0.234, allocations: 12.38 kB / 436.2 MB, free: 2.652 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.431e-05/0.2341, allocations: 16.31 kB / 436.2 MB, free: 2.637 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005045/0.2346, allocations: 250.8 kB / 436.5 MB, free: 2.367 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.2346, allocations: 0 / 436.5 MB, free: 2.367 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.734e-05/0.2346, allocations: 12 kB / 436.5 MB, free: 2.355 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.2346, allocations: 0 / 436.5 MB, free: 2.355 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002462/0.2348, allocations: 91.86 kB / 436.6 MB, free: 2.266 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005826/0.2354, allocations: 0.4963 MB / 437.1 MB, free: 1.719 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003351/0.2358, allocations: 139.9 kB / 437.2 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001573/0.2359, allocations: 66.62 kB / 437.3 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.565e-05/0.2359, allocations: 12 kB / 437.3 MB, free: 1.469 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.58e-05/0.236, allocations: 34.56 kB / 437.3 MB, free: 1.426 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.253e-06/0.236, allocations: 0 / 437.3 MB, free: 1.426 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005076/0.2365, allocations: 185.4 kB / 437.5 MB, free: 1.238 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.019e-05/0.2366, allocations: 114.8 kB / 437.6 MB, free: 1.102 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001505/0.2367, allocations: 162.8 kB / 437.8 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.937e-05/0.2367, allocations: 29.7 kB / 437.8 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.922e-05/0.2368, allocations: 120.6 kB / 437.9 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.23e-05/0.2368, allocations: 27.78 kB / 437.9 MB, free: 0.75 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.63e-05/0.2369, allocations: 37.7 kB / 438 MB, free: 0.707 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.237, allocations: 326.8 kB / 438.3 MB, free: 388 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/0.2371, allocations: 27.98 kB / 438.3 MB, free: 360 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001784/0.2373, allocations: 141.3 kB / 438.4 MB, free: 172 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003124/0.2376, allocations: 193.6 kB / 438.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2376, allocations: 0 / 438.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003759/0.238, allocations: 201.6 kB / 438.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.238, allocations: 10.66 kB / 438.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.238, allocations: 4 kB / 438.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.2381, allocations: 4 kB / 438.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000155/0.2382, allocations: 51.91 kB / 438.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.2382, allocations: 4.375 kB / 438.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001197/0.2383, allocations: 15.89 kB / 438.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.485e-05/0.2384, allocations: 12 kB / 438.9 MB, free: 15.63 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.0001122/0.2385, allocations: 133.8 kB / 439.1 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001591/0.2386, allocations: 105.4 kB / 439.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.761e-05/0.2387, allocations: 24.7 kB / 439.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.2387, allocations: 0 / 439.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.2387, allocations: 0 / 439.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.2387, allocations: 4 kB / 439.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002272/0.2389, allocations: 145.2 kB / 439.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.2389, allocations: 0 / 439.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001711/0.2391, allocations: 35.92 kB / 439.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.2391, allocations: 3.938 kB / 439.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.653e-05/0.2391, allocations: 12 kB / 439.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.2391, allocations: 4 kB / 439.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.2391, allocations: 3.984 kB / 439.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000544/0.2397, allocations: 375.5 kB / 439.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.422e-05/0.2397, allocations: 35.8 kB / 439.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.016e-05/0.2397, allocations: 0 / 439.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001401/0.2399, allocations: 15.98 kB / 439.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.318e-05/0.2399, allocations: 3.984 kB / 439.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.739e-06/0.2399, allocations: 4 kB / 439.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.178e-05/0.24, allocations: 123.3 kB / 439.9 MB, free: 14.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.24, allocations: 0 / 439.9 MB, free: 14.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003102/0.2403, allocations: 27.95 kB / 440 MB, free: 14.53 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 9.683e-05/0.2404, allocations: 103.2 kB / 440.1 MB, free: 14.42 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003145/0.2407, allocations: 124.6 kB / 440.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.2407, allocations: 0 / 440.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.898e-05/0.2408, allocations: 27.92 kB / 440.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004636/0.2413, allocations: 60.3 kB / 440.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007217/0.242, allocations: 464.2 kB / 440.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000119/0.2422, allocations: 110.6 kB / 440.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.369e-05/0.2422, allocations: 15.44 kB / 440.9 MB, free: 13.58 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2422, allocations: 0 / 440.9 MB, free: 13.58 MB / 350.1 MB Notification: Performance of Templates: time 0.003393/0.2456, allocations: 1.671 MB / 442.5 MB, free: 11.91 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/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: 7.192503664176911]