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.0014/0.0014, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001595/0.001595, allocations: 213.6 kB / 23.73 MB, free: 4.164 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.524/1.524, allocations: 230.5 MB / 257.4 MB, free: 7.824 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.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 0.002475/0.002475, allocations: 63.89 kB / 378.2 MB, free: 2.379 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2938/0.2963, allocations: 53.41 MB / 431.6 MB, free: 6.578 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003559/0.2998, allocations: 1.989 MB / 433.6 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001193/0.301, allocations: 0.5259 MB / 434.1 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001497/0.3012, allocations: 7.938 kB / 434.1 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001293/0.3013, allocations: 15.8 kB / 434.2 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001773/0.3015, allocations: 35.72 kB / 434.2 MB, free: 3.996 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000341/0.3018, allocations: 55.88 kB / 434.2 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002082/0.302, allocations: 115.6 kB / 434.4 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000175/0.3022, allocations: 49.48 kB / 434.4 MB, free: 3.773 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.172e-05/0.3023, allocations: 43.86 kB / 434.4 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001002/0.3024, allocations: 51.7 kB / 434.5 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.909e-05/0.3024, allocations: 12 kB / 434.5 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.401e-05/0.3024, allocations: 12 kB / 434.5 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.012e-05/0.3025, allocations: 27.91 kB / 434.5 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.238e-05/0.3025, allocations: 47.73 kB / 434.6 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002415/0.3028, allocations: 133.6 kB / 434.7 MB, free: 3.457 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.3028, allocations: 3.984 kB / 434.7 MB, free: 3.453 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3028, allocations: 0 / 434.7 MB, free: 3.453 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.336e-06/0.3028, allocations: 4 kB / 434.7 MB, free: 3.449 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006922/0.3035, allocations: 353.8 kB / 435.1 MB, free: 3.074 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.3035, allocations: 11.98 kB / 435.1 MB, free: 3.062 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.411e-05/0.3036, allocations: 20.84 kB / 435.1 MB, free: 3.043 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002738/0.3039, allocations: 166.2 kB / 435.3 MB, free: 2.855 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.298e-05/0.3039, allocations: 12.36 kB / 435.3 MB, free: 2.844 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.805e-05/0.3039, allocations: 12.38 kB / 435.3 MB, free: 2.832 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005349/0.3045, allocations: 238.9 kB / 435.5 MB, free: 2.574 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.787e-05/0.3045, allocations: 4 kB / 435.5 MB, free: 2.57 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.547e-05/0.3045, allocations: 4 kB / 435.5 MB, free: 2.566 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.734e-06/0.3045, allocations: 7.938 kB / 435.5 MB, free: 2.559 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000243/0.3048, allocations: 87.86 kB / 435.6 MB, free: 2.473 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006173/0.3054, allocations: 492.3 kB / 436.1 MB, free: 1.945 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003649/0.3057, allocations: 147.8 kB / 436.3 MB, free: 1.773 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001613/0.3059, allocations: 74.64 kB / 436.3 MB, free: 1.691 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.819e-05/0.3059, allocations: 3.984 kB / 436.3 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.97e-05/0.306, allocations: 42.5 kB / 436.4 MB, free: 1.637 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.212e-06/0.306, allocations: 0 / 436.4 MB, free: 1.637 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005227/0.3065, allocations: 173.5 kB / 436.5 MB, free: 1.461 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/0.3066, allocations: 122.7 kB / 436.7 MB, free: 1.316 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001434/0.3067, allocations: 133.4 kB / 436.8 MB, free: 1.176 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.244e-05/0.3068, allocations: 33.83 kB / 436.8 MB, free: 1.137 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.7e-05/0.3068, allocations: 111.9 kB / 436.9 MB, free: 1.023 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.946e-05/0.3069, allocations: 23.84 kB / 437 MB, free: 1 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.819e-05/0.3069, allocations: 37.7 kB / 437 MB, free: 0.957 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.3071, allocations: 322.8 kB / 437.3 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001105/0.3072, allocations: 35.92 kB / 437.3 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001912/0.3074, allocations: 137.3 kB / 437.5 MB, free: 428 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003217/0.3077, allocations: 189.5 kB / 437.7 MB, free: 188 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3077, allocations: 0 / 437.7 MB, free: 188 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004018/0.3081, allocations: 205.4 kB / 437.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.3081, allocations: 8 kB / 437.9 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.3081, allocations: 4 kB / 437.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.3082, allocations: 4 kB / 437.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001505/0.3083, allocations: 47.91 kB / 437.9 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.324e-05/0.3083, allocations: 11.92 kB / 437.9 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001057/0.3084, allocations: 19.89 kB / 438 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.247e-05/0.3084, allocations: 8 kB / 438 MB, free: 15.88 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.0001239/0.3086, allocations: 138.3 kB / 438.1 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001613/0.3087, allocations: 93.52 kB / 438.2 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.571e-05/0.3088, allocations: 16.72 kB / 438.2 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.3088, allocations: 3.938 kB / 438.2 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.3088, allocations: 0 / 438.2 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.3088, allocations: 7.984 kB / 438.2 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002257/0.309, allocations: 133.2 kB / 438.4 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.309, allocations: 0 / 438.4 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000233/0.3093, allocations: 35.98 kB / 438.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.3093, allocations: 3.938 kB / 438.4 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.286e-05/0.3093, allocations: 8 kB / 438.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.3093, allocations: 3.984 kB / 438.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.3093, allocations: 4 kB / 438.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005531/0.3099, allocations: 375.4 kB / 438.8 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.644e-05/0.3099, allocations: 19.81 kB / 438.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.187e-05/0.3099, allocations: 8 kB / 438.8 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001285/0.31, allocations: 7.984 kB / 438.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.305e-05/0.3101, allocations: 12.05 kB / 438.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.069e-05/0.3101, allocations: 8 kB / 438.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.929e-05/0.3102, allocations: 95.27 kB / 438.9 MB, free: 14.85 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3102, allocations: 0 / 438.9 MB, free: 14.85 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003922/0.3105, allocations: 24 kB / 438.9 MB, free: 14.83 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.0001267/0.3107, allocations: 103.2 kB / 439 MB, free: 14.72 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003366/0.311, allocations: 127.3 kB / 439.2 MB, free: 14.6 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.311, allocations: 3.938 kB / 439.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.52e-05/0.3111, allocations: 23.98 kB / 439.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004945/0.3116, allocations: 60.09 kB / 439.3 MB, free: 14.51 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000827/0.3124, allocations: 399 kB / 439.6 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001491/0.3126, allocations: 101.5 kB / 439.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.615e-05/0.3126, allocations: 9.078 kB / 439.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.745e-05/0.3127, allocations: 19.44 kB / 439.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3127, allocations: 3.938 kB / 439.8 MB, free: 13.94 MB / 350.1 MB Notification: Performance of Templates: time 0.005125/0.3178, allocations: 1.389 MB / 441.2 MB, free: 12.59 MB / 350.1 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.590925294905901]