Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.001067/0.001067, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001536/0.002604, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.0007372/0.0007372, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009824/0.00172, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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.9435/0.9435, allocations: 177.5 MB / 190 MB, free: 4.766 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0971/1.041, allocations: 53.88 MB / 243.9 MB, free: 14.82 MB / 250.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.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 245.2 MB, free: 13.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.925e-05/2.076e-05, allocations: 2.312 kB / 245.2 MB, free: 13.56 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002573/0.002593, allocations: 2.123 MB / 247.3 MB, free: 11.43 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007098/0.003303, allocations: 0.5295 MB / 247.8 MB, free: 10.89 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.248e-05/0.003396, allocations: 7.938 kB / 247.8 MB, free: 10.88 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 6.142e-05/0.003457, allocations: 15.86 kB / 247.9 MB, free: 10.87 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.502e-05/0.003522, allocations: 27.72 kB / 247.9 MB, free: 10.84 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001947/0.003717, allocations: 59.75 kB / 247.9 MB, free: 10.78 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001472/0.003864, allocations: 123.6 kB / 248.1 MB, free: 10.66 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001175/0.003981, allocations: 50.19 kB / 248.1 MB, free: 10.61 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001195/0.004101, allocations: 79.75 kB / 248.2 MB, free: 10.53 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.502e-05/0.004176, allocations: 43.88 kB / 248.2 MB, free: 10.49 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.422e-05/0.0042, allocations: 8 kB / 248.2 MB, free: 10.48 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.794e-05/0.004218, allocations: 12 kB / 248.3 MB, free: 10.47 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.884e-05/0.004247, allocations: 23.88 kB / 248.3 MB, free: 10.45 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.335e-05/0.00428, allocations: 27.94 kB / 248.3 MB, free: 10.42 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001431/0.004423, allocations: 79.67 kB / 248.4 MB, free: 10.34 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.875e-06/0.004431, allocations: 0 / 248.4 MB, free: 10.34 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.004432, allocations: 4 kB / 248.4 MB, free: 10.34 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.004441, allocations: 0 / 248.4 MB, free: 10.34 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0004327/0.004873, allocations: 352 kB / 248.7 MB, free: 9.969 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.213e-05/0.004906, allocations: 8.625 kB / 248.7 MB, free: 9.961 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.988e-05/0.004945, allocations: 16.92 kB / 248.8 MB, free: 9.945 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000157/0.005102, allocations: 145.6 kB / 248.9 MB, free: 9.777 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.098e-05/0.005113, allocations: 12.38 kB / 248.9 MB, free: 9.766 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.713e-05/0.005141, allocations: 16.31 kB / 248.9 MB, free: 9.75 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000241/0.005382, allocations: 199.8 kB / 249.1 MB, free: 9.527 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.00539, allocations: 192 / 249.1 MB, free: 9.527 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.338e-06/0.0054, allocations: 4.375 kB / 249.1 MB, free: 9.523 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.084e-06/0.005407, allocations: 7.938 kB / 249.1 MB, free: 9.516 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.222e-05/0.005459, allocations: 34.81 kB / 249.2 MB, free: 9.484 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003823/0.005841, allocations: 454 kB / 249.6 MB, free: 9 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001219/0.005963, allocations: 107.7 kB / 249.7 MB, free: 8.867 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.778e-05/0.006001, allocations: 42.64 kB / 249.8 MB, free: 8.816 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.109e-05/0.006022, allocations: 8 kB / 249.8 MB, free: 8.809 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.931e-05/0.006041, allocations: 34.5 kB / 249.8 MB, free: 8.766 MB / 250.7 MB Notification: Performance of pre-optimization done (n=14): time 9.32e-07/0.006042, allocations: 3.938 kB / 249.8 MB, free: 8.762 MB / 250.7 MB Notification: Performance of matching and sorting (n=14): time 0.0001563/0.006198, allocations: 93.53 kB / 249.9 MB, free: 8.664 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.313e-05/0.006252, allocations: 114.8 kB / 250 MB, free: 8.527 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.247e-05/0.006314, allocations: 126.7 kB / 250.1 MB, free: 8.391 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.237e-05/0.006326, allocations: 29.83 kB / 250.2 MB, free: 8.355 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.655e-05/0.006373, allocations: 119.8 kB / 250.3 MB, free: 8.234 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.722e-05/0.00639, allocations: 23.78 kB / 250.3 MB, free: 8.211 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.146e-05/0.006422, allocations: 25.7 kB / 250.3 MB, free: 8.18 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.939e-05/0.006501, allocations: 326.8 kB / 250.6 MB, free: 7.852 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.259e-05/0.006514, allocations: 8 kB / 250.6 MB, free: 7.844 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.687e-05/0.006551, allocations: 58.8 kB / 250.7 MB, free: 7.762 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.135e-05/0.006612, allocations: 78.72 kB / 250.8 MB, free: 7.66 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.006614, allocations: 0 / 250.8 MB, free: 7.66 MB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 9.385e-05/0.006708, allocations: 89.7 kB / 250.9 MB, free: 7.566 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.006722, allocations: 7.281 kB / 250.9 MB, free: 7.562 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.006729, allocations: 7.984 kB / 250.9 MB, free: 7.555 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.127e-05/0.00674, allocations: 224 / 250.9 MB, free: 7.555 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001338/0.006874, allocations: 35.92 kB / 250.9 MB, free: 7.52 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.643e-06/0.006881, allocations: 11.97 kB / 250.9 MB, free: 7.508 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.564e-05/0.006916, allocations: 19.83 kB / 251 MB, free: 7.488 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.342e-06/0.006923, allocations: 4 kB / 251 MB, free: 7.484 MB / 250.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 5.886e-05/0.006981, allocations: 113.8 kB / 251.1 MB, free: 7.363 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.417e-05/0.007046, allocations: 65.61 kB / 251.1 MB, free: 7.293 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.234e-05/0.007078, allocations: 12.78 kB / 251.1 MB, free: 7.281 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.225e-06/0.00708, allocations: 0 / 251.1 MB, free: 7.281 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.007082, allocations: 0 / 251.1 MB, free: 7.281 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.007086, allocations: 8 kB / 251.1 MB, free: 7.273 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001152/0.007201, allocations: 93.78 kB / 251.2 MB, free: 7.164 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.007202, allocations: 4 kB / 251.2 MB, free: 7.16 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.554e-05/0.007298, allocations: 39.86 kB / 251.3 MB, free: 7.121 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.388e-05/0.007311, allocations: 19.83 kB / 251.3 MB, free: 7.102 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.007314, allocations: 0 / 251.3 MB, free: 7.102 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.055e-05/0.007324, allocations: 8 kB / 251.3 MB, free: 7.094 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.007326, allocations: 0 / 251.3 MB, free: 7.094 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.007326, allocations: 0 / 251.3 MB, free: 7.094 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001343/0.007461, allocations: 243.5 kB / 251.5 MB, free: 6.836 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.312e-05/0.007474, allocations: 8.031 kB / 251.6 MB, free: 6.828 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.499e-05/0.007529, allocations: 4 kB / 251.6 MB, free: 6.824 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.935e-05/0.007558, allocations: 7.984 kB / 251.6 MB, free: 6.816 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.44e-06/0.007564, allocations: 4 kB / 251.6 MB, free: 6.812 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.653e-05/0.00759, allocations: 28.06 kB / 251.6 MB, free: 6.785 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00759, allocations: 0 / 251.6 MB, free: 6.785 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001685/0.007759, allocations: 20 kB / 251.6 MB, free: 6.766 MB / 250.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 (14): * Single equations (assignments): 14 * 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.516e-05/0.007834, allocations: 84.36 kB / 251.7 MB, free: 6.676 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 9.453e-05/0.007928, allocations: 64.7 kB / 251.8 MB, free: 6.609 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.007934, allocations: 0 / 251.8 MB, free: 6.609 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 2.798e-05/0.007962, allocations: 16.8 kB / 251.8 MB, free: 6.59 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003137/0.008276, allocations: 188.2 kB / 252 MB, free: 6.375 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001296/0.009572, allocations: 304.1 kB / 252.3 MB, free: 6.047 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.863e-05/0.009621, allocations: 71.34 kB / 252.3 MB, free: 5.957 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.119e-05/0.009652, allocations: 8.969 kB / 252.3 MB, free: 5.945 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.424e-05/0.009716, allocations: 71.36 kB / 252.4 MB, free: 5.875 MB / 250.7 MB Notification: Performance of SimCode: time 6.51e-07/0.009717, allocations: 0 / 252.4 MB, free: 5.875 MB / 250.7 MB Notification: Performance of Templates: time 0.002988/0.0127, allocations: 1.233 MB / 253.6 MB, free: 4.699 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.3732746755704284]