Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001229/0.001229, allocations: 80.8 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001479/0.001479, allocations: 170.4 kB / 24.91 MB, free: 9.191 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.947/0.947, allocations: 177.1 MB / 205.3 MB, free: 5.477 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 273.4 MB, free: 1.332 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.394e-05/1.519e-05, allocations: 6.312 kB / 273.4 MB, free: 1.324 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002344/0.002359, allocations: 2.051 MB / 275.5 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006879/0.003047, allocations: 0.5334 MB / 276 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.083e-05/0.003128, allocations: 4 kB / 276 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 9.501e-05/0.003223, allocations: 19.73 kB / 276 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 5.627e-05/0.003279, allocations: 27.72 kB / 276.1 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002158/0.003495, allocations: 55.81 kB / 276.1 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000171/0.003666, allocations: 131.5 kB / 276.2 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001119/0.003778, allocations: 42.25 kB / 276.3 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.965e-05/0.003878, allocations: 71.88 kB / 276.4 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.191e-05/0.00394, allocations: 35.88 kB / 276.4 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.479e-05/0.003964, allocations: 15.94 kB / 276.4 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.258e-05/0.003977, allocations: 8 kB / 276.4 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.564e-05/0.004003, allocations: 31.91 kB / 276.4 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.415e-05/0.004037, allocations: 35.91 kB / 276.5 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001253/0.004162, allocations: 95.58 kB / 276.6 MB, free: 14.16 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.503e-06/0.004164, allocations: 0 / 276.6 MB, free: 14.16 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.52e-07/0.004164, allocations: 0 / 276.6 MB, free: 14.16 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.655e-06/0.004167, allocations: 4 kB / 276.6 MB, free: 14.15 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0003152/0.004482, allocations: 316.5 kB / 276.9 MB, free: 13.82 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.678e-05/0.004509, allocations: 12.03 kB / 276.9 MB, free: 13.81 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.15e-05/0.00454, allocations: 20.92 kB / 276.9 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001325/0.004673, allocations: 145.5 kB / 277.1 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.117e-06/0.004682, allocations: 8.375 kB / 277.1 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.365e-05/0.004705, allocations: 12.38 kB / 277.1 MB, free: 13.6 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00021/0.004915, allocations: 203.8 kB / 277.3 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-06/0.004923, allocations: 192 / 277.3 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.405e-06/0.004932, allocations: 8.375 kB / 277.3 MB, free: 13.37 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.004938, allocations: 11.94 kB / 277.3 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.383e-05/0.004982, allocations: 27.92 kB / 277.3 MB, free: 13.33 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003196/0.005302, allocations: 453.9 kB / 277.8 MB, free: 12.85 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001001/0.005402, allocations: 103.7 kB / 277.9 MB, free: 12.72 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.589e-05/0.005438, allocations: 38.56 kB / 277.9 MB, free: 12.67 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.466e-05/0.005452, allocations: 4 kB / 277.9 MB, free: 12.67 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.923e-05/0.005472, allocations: 42.64 kB / 277.9 MB, free: 12.62 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.082e-06/0.005473, allocations: 0 / 277.9 MB, free: 12.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0001463/0.005619, allocations: 97.52 kB / 278 MB, free: 12.52 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.304e-05/0.005662, allocations: 106.8 kB / 278.1 MB, free: 12.39 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.815e-05/0.00572, allocations: 141.5 kB / 278.3 MB, free: 12.24 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.867e-06/0.005729, allocations: 25.83 kB / 278.3 MB, free: 12.21 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.755e-05/0.005767, allocations: 123.8 kB / 278.4 MB, free: 12.08 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.262e-05/0.005779, allocations: 15.86 kB / 278.4 MB, free: 12.07 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.946e-05/0.005809, allocations: 29.69 kB / 278.5 MB, free: 12.03 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.539e-05/0.005874, allocations: 326.8 kB / 278.8 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.1e-05/0.005885, allocations: 7.938 kB / 278.8 MB, free: 11.7 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.157e-05/0.005917, allocations: 58.86 kB / 278.9 MB, free: 11.61 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.466e-05/0.005971, allocations: 78.72 kB / 278.9 MB, free: 11.51 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.005973, allocations: 0 / 278.9 MB, free: 11.51 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 7.074e-05/0.006044, allocations: 85.53 kB / 279 MB, free: 11.42 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.378e-06/0.006053, allocations: 7.938 kB / 279 MB, free: 11.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.006058, allocations: 4 kB / 279 MB, free: 11.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.967e-06/0.006067, allocations: 224 / 279 MB, free: 11.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.991e-05/0.006137, allocations: 27.98 kB / 279.1 MB, free: 11.38 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.006142, allocations: 7.984 kB / 279.1 MB, free: 11.38 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.271e-05/0.006175, allocations: 15.89 kB / 279.1 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.142e-06/0.006181, allocations: 7.938 kB / 279.1 MB, free: 11.35 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 5.307e-05/0.006234, allocations: 117.8 kB / 279.2 MB, free: 11.23 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.581e-05/0.00629, allocations: 61.61 kB / 279.3 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.334e-05/0.006313, allocations: 16.78 kB / 279.3 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.006315, allocations: 0 / 279.3 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.006318, allocations: 7.984 kB / 279.3 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.00632, allocations: 4 kB / 279.3 MB, free: 11.13 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001159/0.006436, allocations: 97.73 kB / 279.4 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.006437, allocations: 0 / 279.4 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.183e-05/0.006509, allocations: 27.98 kB / 279.4 MB, free: 10.99 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/0.006514, allocations: 0 / 279.4 MB, free: 10.99 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.006527, allocations: 7.984 kB / 279.4 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.006527, allocations: 0 / 279.4 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.006528, allocations: 0 / 279.4 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001152/0.006644, allocations: 255.4 kB / 279.7 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.056e-05/0.006654, allocations: 7.953 kB / 279.7 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.249e-05/0.006667, allocations: 4 kB / 279.7 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.743e-05/0.006724, allocations: 12.03 kB / 279.7 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.366e-05/0.006748, allocations: 3.984 kB / 279.7 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.318e-06/0.006752, allocations: 4 kB / 279.7 MB, free: 10.68 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.597e-05/0.006768, allocations: 20.83 kB / 279.7 MB, free: 10.66 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006768, allocations: 4 kB / 279.7 MB, free: 10.66 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001615/0.00693, allocations: 23.94 kB / 279.8 MB, free: 10.63 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 (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 5.986e-05/0.006989, allocations: 88.36 kB / 279.8 MB, free: 10.54 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 7.455e-05/0.007064, allocations: 53.23 kB / 279.9 MB, free: 10.48 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.007066, allocations: 0 / 279.9 MB, free: 10.48 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.944e-05/0.007086, allocations: 20.8 kB / 279.9 MB, free: 10.46 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000229/0.007315, allocations: 51.27 kB / 280 MB, free: 10.41 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000476/0.007791, allocations: 311.8 kB / 280.3 MB, free: 10.08 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.109e-05/0.007832, allocations: 79.27 kB / 280.3 MB, free: 9.98 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.413e-05/0.007856, allocations: 8.5 kB / 280.4 MB, free: 9.973 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.404e-05/0.00791, allocations: 67.36 kB / 280.4 MB, free: 9.906 MB / 266.7 MB Notification: Performance of SimCode: time 4.71e-07/0.007911, allocations: 0 / 280.4 MB, free: 9.906 MB / 266.7 MB Notification: Performance of Templates: time 0.002518/0.01043, allocations: 1.205 MB / 281.6 MB, free: 8.758 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.562700997106731]