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.001516/0.001516, allocations: 92.31 kB / 20.96 MB, free: 3.477 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.001564/0.001564, allocations: 165.7 kB / 24.27 MB, free: 172 kB / 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 1.454/1.454, allocations: 177.1 MB / 204.6 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 178] 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.332e-06/1.332e-06, allocations: 0 / 272.3 MB, free: 1.859 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.425e-05/2.558e-05, allocations: 6.312 kB / 272.3 MB, free: 1.852 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003557/0.003583, allocations: 1.99 MB / 274.3 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001092/0.004675, allocations: 0.5103 MB / 274.8 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001083/0.004783, allocations: 4 kB / 274.8 MB, free: 15.33 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001148/0.004898, allocations: 15.8 kB / 274.8 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 9.409e-05/0.004992, allocations: 27.72 kB / 274.8 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003134/0.005306, allocations: 59.75 kB / 274.9 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002033/0.005509, allocations: 123.6 kB / 275 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000146/0.005655, allocations: 41.59 kB / 275.1 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001429/0.005798, allocations: 75.8 kB / 275.1 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.225e-05/0.00588, allocations: 35.89 kB / 275.2 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.939e-05/0.005909, allocations: 12 kB / 275.2 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.084e-05/0.00593, allocations: 8 kB / 275.2 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.938e-05/0.00597, allocations: 27.91 kB / 275.2 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.705e-05/0.006037, allocations: 43.84 kB / 275.3 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002324/0.006269, allocations: 123.6 kB / 275.4 MB, free: 14.75 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.006271, allocations: 0 / 275.4 MB, free: 14.75 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.11e-07/0.006272, allocations: 0 / 275.4 MB, free: 14.75 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.006277, allocations: 4 kB / 275.4 MB, free: 14.74 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.0006681/0.006945, allocations: 353.8 kB / 275.7 MB, free: 14.37 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.006987, allocations: 12.03 kB / 275.7 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.347e-05/0.00707, allocations: 28.78 kB / 275.8 MB, free: 14.33 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002803/0.007351, allocations: 149.6 kB / 275.9 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.695e-05/0.007368, allocations: 8.375 kB / 275.9 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.974e-05/0.007408, allocations: 16.33 kB / 275.9 MB, free: 14.13 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005533/0.007961, allocations: 235.1 kB / 276.2 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.007974, allocations: 192 / 276.2 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.683e-05/0.007991, allocations: 4.375 kB / 276.2 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/0.007998, allocations: 3.938 kB / 276.2 MB, free: 13.87 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002836/0.008281, allocations: 91.86 kB / 276.3 MB, free: 13.78 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006651/0.008946, allocations: 0.4888 MB / 276.8 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003162/0.009263, allocations: 135.9 kB / 276.9 MB, free: 13.09 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001706/0.009433, allocations: 70.62 kB / 277 MB, free: 13.01 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.635e-05/0.00946, allocations: 4 kB / 277 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.954e-05/0.009499, allocations: 38.5 kB / 277 MB, free: 12.96 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.172e-06/0.0095, allocations: 0 / 277 MB, free: 12.96 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005658/0.01007, allocations: 181.4 kB / 277.2 MB, free: 12.77 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.426e-05/0.01016, allocations: 110.8 kB / 277.3 MB, free: 12.64 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001345/0.01029, allocations: 130.1 kB / 277.4 MB, free: 12.5 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.161e-05/0.01032, allocations: 25.7 kB / 277.4 MB, free: 12.47 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.668e-05/0.0104, allocations: 112.1 kB / 277.5 MB, free: 12.36 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.177e-05/0.01043, allocations: 27.78 kB / 277.6 MB, free: 12.33 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.186e-05/0.01049, allocations: 25.72 kB / 277.6 MB, free: 12.3 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.01066, allocations: 322.8 kB / 277.9 MB, free: 11.97 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001131/0.01077, allocations: 28.11 kB / 277.9 MB, free: 11.95 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001633/0.01093, allocations: 90.7 kB / 278 MB, free: 11.83 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002601/0.01119, allocations: 114.8 kB / 278.1 MB, free: 11.7 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.0112, allocations: 0 / 278.1 MB, free: 11.7 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000331/0.01153, allocations: 141.4 kB / 278.3 MB, free: 11.55 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.01154, allocations: 10.95 kB / 278.3 MB, free: 11.54 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.166e-06/0.01155, allocations: 4 kB / 278.3 MB, free: 11.54 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.01157, allocations: 464 / 278.3 MB, free: 11.54 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001618/0.01173, allocations: 39.92 kB / 278.3 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.01173, allocations: 0 / 278.3 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.38e-05/0.01183, allocations: 23.81 kB / 278.4 MB, free: 11.48 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.021e-05/0.01184, allocations: 4 kB / 278.4 MB, free: 11.47 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.0001278/0.01197, allocations: 125.8 kB / 278.5 MB, free: 11.34 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001682/0.01213, allocations: 85.62 kB / 278.6 MB, free: 11.25 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.687e-05/0.01218, allocations: 16.78 kB / 278.6 MB, free: 11.23 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.01218, allocations: 0 / 278.6 MB, free: 11.23 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.01219, allocations: 4 kB / 278.6 MB, free: 11.23 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.01219, allocations: 11.92 kB / 278.6 MB, free: 11.22 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002453/0.01244, allocations: 137.2 kB / 278.7 MB, free: 11.05 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.01244, allocations: 0 / 278.7 MB, free: 11.05 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001791/0.01262, allocations: 31.98 kB / 278.8 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.01262, allocations: 0 / 278.8 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.435e-05/0.01264, allocations: 4 kB / 278.8 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.01264, allocations: 4 kB / 278.8 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.01264, allocations: 0 / 278.8 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000733/0.01338, allocations: 386.4 kB / 279.1 MB, free: 10.62 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.38e-05/0.0134, allocations: 15.88 kB / 279.2 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.311e-05/0.01342, allocations: 4 kB / 279.2 MB, free: 10.6 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001412/0.01357, allocations: 7.984 kB / 279.2 MB, free: 10.59 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.45e-05/0.01361, allocations: 4 kB / 279.2 MB, free: 10.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.195e-05/0.01362, allocations: 8 kB / 279.2 MB, free: 10.58 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.02e-05/0.0137, allocations: 102.2 kB / 279.3 MB, free: 10.48 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0137, allocations: 0 / 279.3 MB, free: 10.48 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000325/0.01403, allocations: 27.94 kB / 279.3 MB, free: 10.46 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 0.0001252/0.01415, allocations: 107.2 kB / 279.4 MB, free: 10.34 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003061/0.01446, allocations: 87.88 kB / 279.5 MB, free: 10.26 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.01446, allocations: 0 / 279.5 MB, free: 10.26 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001036/0.01456, allocations: 31.86 kB / 279.5 MB, free: 10.23 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005181/0.01508, allocations: 56 kB / 279.6 MB, free: 10.18 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007369/0.01582, allocations: 339 kB / 279.9 MB, free: 9.812 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001231/0.01594, allocations: 101.2 kB / 280 MB, free: 9.691 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.027e-05/0.01598, allocations: 4.5 kB / 280 MB, free: 9.688 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.896e-05/0.01603, allocations: 20.5 kB / 280 MB, free: 9.668 MB / 266.7 MB Notification: Performance of SimCode: time 5.71e-07/0.01603, allocations: 4 kB / 280 MB, free: 9.664 MB / 266.7 MB Notification: Performance of Templates: time 0.00444/0.02047, allocations: 1.182 MB / 281.2 MB, free: 8.535 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.309542855946347]