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.002049/0.002049, allocations: 103.5 kB / 20.97 MB, free: 3.453 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.002147/0.002147, allocations: 156.8 kB / 24.27 MB, free: 156 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.57/1.57, allocations: 177 MB / 204.5 MB, free: 5.613 MB / 186.7 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 1.062e-06/1.062e-06, allocations: 0 / 272.2 MB, free: 1.828 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.789e-05/2.895e-05, allocations: 2.312 kB / 272.2 MB, free: 1.824 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.00377/0.003799, allocations: 2.057 MB / 274.2 MB, free: 15.76 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001224/0.005024, allocations: 0.5725 MB / 274.8 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001127/0.005136, allocations: 4 kB / 274.8 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000104/0.00524, allocations: 19.8 kB / 274.8 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001668/0.005407, allocations: 47.52 kB / 274.9 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002705/0.005678, allocations: 67.8 kB / 274.9 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002013/0.005879, allocations: 127.5 kB / 275.1 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001372/0.006016, allocations: 42.08 kB / 275.1 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001453/0.006162, allocations: 79.81 kB / 275.2 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.021e-05/0.006252, allocations: 43.88 kB / 275.2 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.27e-05/0.006284, allocations: 12 kB / 275.2 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.734e-05/0.006312, allocations: 12 kB / 275.2 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.056e-05/0.006382, allocations: 31.84 kB / 275.3 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.787e-05/0.00645, allocations: 51.78 kB / 275.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002583/0.006709, allocations: 143.5 kB / 275.5 MB, free: 14.51 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.006712, allocations: 0 / 275.5 MB, free: 14.51 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.006712, allocations: 0 / 275.5 MB, free: 14.51 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.098e-06/0.006717, allocations: 0 / 275.5 MB, free: 14.51 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.0007827/0.007499, allocations: 479.6 kB / 275.9 MB, free: 14 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.007537, allocations: 19.92 kB / 276 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.39e-05/0.007601, allocations: 24.84 kB / 276 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002443/0.007846, allocations: 172.3 kB / 276.2 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.927e-05/0.007865, allocations: 12.31 kB / 276.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.157e-05/0.007896, allocations: 12.38 kB / 276.2 MB, free: 13.74 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005283/0.008425, allocations: 268.1 kB / 276.4 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.008436, allocations: 192 / 276.4 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.476e-05/0.008451, allocations: 4.375 kB / 276.4 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.717e-06/0.00846, allocations: 7.938 kB / 276.4 MB, free: 13.44 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002059/0.008666, allocations: 79.83 kB / 276.5 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007645/0.00943, allocations: 0.6602 MB / 277.2 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003432/0.009773, allocations: 169.1 kB / 277.4 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001443/0.009918, allocations: 79.25 kB / 277.4 MB, free: 12.35 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.696e-05/0.009955, allocations: 7.938 kB / 277.4 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.673e-05/0.009991, allocations: 45.38 kB / 277.5 MB, free: 12.29 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.072e-06/0.009992, allocations: 0 / 277.5 MB, free: 12.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004525/0.01044, allocations: 177.6 kB / 277.7 MB, free: 12.11 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.762e-05/0.01053, allocations: 106.8 kB / 277.8 MB, free: 11.98 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002042/0.01074, allocations: 229.8 kB / 278 MB, free: 11.74 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.559e-05/0.01076, allocations: 33.7 kB / 278 MB, free: 11.7 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.01087, allocations: 163.4 kB / 278.2 MB, free: 11.54 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.157e-05/0.01091, allocations: 23.8 kB / 278.2 MB, free: 11.51 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.5e-05/0.01098, allocations: 47.3 kB / 278.2 MB, free: 11.46 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000263/0.01124, allocations: 0.4961 MB / 278.7 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.311e-05/0.01131, allocations: 16 kB / 278.8 MB, free: 10.93 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001382/0.01145, allocations: 101.5 kB / 278.9 MB, free: 10.8 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002117/0.01166, allocations: 133.4 kB / 279 MB, free: 10.64 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.01166, allocations: 0 / 279 MB, free: 10.64 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002715/0.01193, allocations: 129.4 kB / 279.1 MB, free: 10.5 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/0.01195, allocations: 4 kB / 279.1 MB, free: 10.5 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.397e-06/0.01195, allocations: 4.219 kB / 279.1 MB, free: 10.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.01196, allocations: 8 kB / 279.1 MB, free: 10.49 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.01207, allocations: 23.98 kB / 279.2 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.469e-06/0.01207, allocations: 0 / 279.2 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.271e-05/0.01214, allocations: 19.88 kB / 279.2 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.167e-05/0.01215, allocations: 8 kB / 279.2 MB, free: 10.44 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 0.0001355/0.01229, allocations: 172.5 kB / 279.3 MB, free: 10.26 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001691/0.01246, allocations: 97.53 kB / 279.4 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.157e-05/0.01252, allocations: 20.77 kB / 279.5 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.01253, allocations: 4 kB / 279.5 MB, free: 10.13 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.01253, allocations: 4 kB / 279.5 MB, free: 10.13 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.002e-06/0.01254, allocations: 4 kB / 279.5 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002737/0.01281, allocations: 168.4 kB / 279.6 MB, free: 9.926 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.01281, allocations: 0 / 279.6 MB, free: 9.926 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000164/0.01298, allocations: 35.97 kB / 279.7 MB, free: 9.891 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.01298, allocations: 0 / 279.7 MB, free: 9.891 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.492e-05/0.01299, allocations: 8 kB / 279.7 MB, free: 9.883 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.013, allocations: 0 / 279.7 MB, free: 9.883 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.013, allocations: 3.938 kB / 279.7 MB, free: 9.879 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005662/0.01356, allocations: 477.7 kB / 280.2 MB, free: 9.391 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.976e-05/0.01362, allocations: 23.88 kB / 280.2 MB, free: 9.367 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.354e-05/0.01365, allocations: 7.984 kB / 280.2 MB, free: 9.359 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001305/0.01378, allocations: 8 kB / 280.2 MB, free: 9.352 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.964e-05/0.01382, allocations: 11.98 kB / 280.2 MB, free: 9.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.057e-06/0.01382, allocations: 4 kB / 280.2 MB, free: 9.336 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001258/0.01395, allocations: 159.2 kB / 280.4 MB, free: 9.18 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01395, allocations: 0 / 280.4 MB, free: 9.18 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002798/0.01423, allocations: 35.83 kB / 280.4 MB, free: 9.145 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 0.0001137/0.01434, allocations: 99.28 kB / 280.5 MB, free: 9.039 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002486/0.01459, allocations: 95.73 kB / 280.6 MB, free: 8.941 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.01459, allocations: 0 / 280.6 MB, free: 8.941 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.885e-05/0.01468, allocations: 31.67 kB / 280.6 MB, free: 8.906 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000477/0.01516, allocations: 69.2 kB / 280.7 MB, free: 8.84 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007098/0.01587, allocations: 380 kB / 281.1 MB, free: 8.434 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001243/0.01599, allocations: 106.3 kB / 281.2 MB, free: 8.305 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.658e-05/0.01603, allocations: 8.641 kB / 281.2 MB, free: 8.297 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.437e-05/0.01607, allocations: 12.5 kB / 281.2 MB, free: 8.285 MB / 266.7 MB Notification: Performance of SimCode: time 4.31e-07/0.01607, allocations: 0 / 281.2 MB, free: 8.285 MB / 266.7 MB Notification: Performance of Templates: time 0.004619/0.02068, allocations: 1.37 MB / 282.6 MB, free: 6.973 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","/var/lib/jenkins/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: 4.390387627994642]