Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009677/0.0009677, allocations: 83.89 kB / 21.19 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008647/0.0008647, allocations: 141.1 kB / 24.54 MB, free: 36 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9672/0.9672, allocations: 173.3 MB / 201.1 MB, free: 9.324 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.984e-06/1.984e-06, allocations: 0 / 268 MB, free: 6.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.044e-05/3.242e-05, allocations: 6.25 kB / 268 MB, free: 6.441 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.00383/0.003862, allocations: 2.042 MB / 270 MB, free: 4.391 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001113/0.004975, allocations: 0.4985 MB / 270.5 MB, free: 3.887 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001659/0.00514, allocations: 4 kB / 270.5 MB, free: 3.883 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001349/0.005275, allocations: 15.8 kB / 270.5 MB, free: 3.867 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 9.336e-05/0.005369, allocations: 35.72 kB / 270.6 MB, free: 3.832 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003505/0.005719, allocations: 55.8 kB / 270.6 MB, free: 3.777 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002125/0.005932, allocations: 123.5 kB / 270.7 MB, free: 3.656 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000168/0.0061, allocations: 41.61 kB / 270.8 MB, free: 3.609 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001394/0.006239, allocations: 71.8 kB / 270.8 MB, free: 3.539 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.139e-05/0.00633, allocations: 39.89 kB / 270.9 MB, free: 3.5 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.307e-05/0.006364, allocations: 12 kB / 270.9 MB, free: 3.488 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.935e-05/0.006383, allocations: 8 kB / 270.9 MB, free: 3.48 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.357e-05/0.006416, allocations: 23.91 kB / 270.9 MB, free: 3.457 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.762e-05/0.006474, allocations: 39.91 kB / 271 MB, free: 3.418 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001929/0.006667, allocations: 95.59 kB / 271.1 MB, free: 3.324 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.00667, allocations: 0 / 271.1 MB, free: 3.324 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.006671, allocations: 0 / 271.1 MB, free: 3.324 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.006677, allocations: 0 / 271.1 MB, free: 3.324 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.0005155/0.007192, allocations: 444.1 kB / 271.5 MB, free: 2.855 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.007234, allocations: 12.92 kB / 271.5 MB, free: 2.844 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.575e-05/0.007289, allocations: 28.83 kB / 271.5 MB, free: 2.816 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001816/0.007471, allocations: 148.4 kB / 271.7 MB, free: 2.645 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.075e-05/0.007482, allocations: 12.38 kB / 271.7 MB, free: 2.633 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.258e-05/0.007514, allocations: 16.36 kB / 271.7 MB, free: 2.617 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000362/0.007876, allocations: 228.8 kB / 271.9 MB, free: 2.359 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.007889, allocations: 192 / 271.9 MB, free: 2.359 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.007901, allocations: 4.375 kB / 271.9 MB, free: 2.355 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.007912, allocations: 7.938 kB / 271.9 MB, free: 2.348 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.374e-05/0.007996, allocations: 51.83 kB / 272 MB, free: 2.297 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005101/0.008506, allocations: 0.6251 MB / 272.6 MB, free: 1.617 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001715/0.008677, allocations: 141.3 kB / 272.8 MB, free: 1.441 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.567e-05/0.008743, allocations: 59.12 kB / 272.8 MB, free: 1.371 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.932e-05/0.008772, allocations: 4 kB / 272.8 MB, free: 1.367 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.374e-05/0.008796, allocations: 37.33 kB / 272.9 MB, free: 1.32 MB / 250.7 MB Notification: Performance of pre-optimization done (n=14): time 1.222e-06/0.008797, allocations: 0 / 272.9 MB, free: 1.32 MB / 250.7 MB Notification: Performance of matching and sorting (n=14): time 0.000254/0.009051, allocations: 121.5 kB / 273 MB, free: 1.195 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.03e-05/0.009111, allocations: 118.9 kB / 273.1 MB, free: 1.055 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.451e-05/0.009206, allocations: 185.9 kB / 273.3 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.149e-05/0.009217, allocations: 25.7 kB / 273.3 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.677e-05/0.009284, allocations: 158.8 kB / 273.5 MB, free: 0.6641 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.959e-05/0.009304, allocations: 23.8 kB / 273.5 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.725e-05/0.009341, allocations: 35.36 kB / 273.5 MB, free: 0.5977 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.009459, allocations: 0.4961 MB / 274 MB, free: 92 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.603e-05/0.009485, allocations: 4 kB / 274 MB, free: 88 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.93e-05/0.009554, allocations: 85.42 kB / 274.1 MB, free: 15.97 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.579e-05/0.00964, allocations: 101.4 kB / 274.2 MB, free: 15.84 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.009643, allocations: 4 kB / 274.2 MB, free: 15.83 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001334/0.009776, allocations: 101.4 kB / 274.3 MB, free: 15.73 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.009792, allocations: 8.219 kB / 274.3 MB, free: 15.72 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.009799, allocations: 7.984 kB / 274.3 MB, free: 15.71 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.009819, allocations: 4 kB / 274.3 MB, free: 15.71 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001104/0.009929, allocations: 23.94 kB / 274.3 MB, free: 15.68 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.009936, allocations: 3.984 kB / 274.3 MB, free: 15.68 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.072e-05/0.009977, allocations: 23.83 kB / 274.4 MB, free: 15.66 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.073e-06/0.009984, allocations: 4 kB / 274.4 MB, free: 15.65 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 7.957e-05/0.01006, allocations: 160.6 kB / 274.5 MB, free: 15.48 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.518e-05/0.01016, allocations: 81.89 kB / 274.6 MB, free: 15.4 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.492e-05/0.01019, allocations: 16.78 kB / 274.6 MB, free: 15.38 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.0102, allocations: 12.22 kB / 274.6 MB, free: 15.37 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.0102, allocations: 3.938 kB / 274.6 MB, free: 15.37 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.748e-06/0.01021, allocations: 3.984 kB / 274.6 MB, free: 15.36 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001627/0.01037, allocations: 152.5 kB / 274.8 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.01037, allocations: 0 / 274.8 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001/0.01047, allocations: 35.92 kB / 274.8 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.01047, allocations: 0 / 274.8 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.782e-05/0.01049, allocations: 4 kB / 274.8 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.0105, allocations: 4 kB / 274.8 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.0105, allocations: 0 / 274.8 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002824/0.01078, allocations: 410.6 kB / 275.2 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.768e-05/0.0108, allocations: 15.88 kB / 275.3 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.637e-05/0.01081, allocations: 4 kB / 275.3 MB, free: 14.69 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.648e-05/0.01088, allocations: 4 kB / 275.3 MB, free: 14.69 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.486e-05/0.01092, allocations: 7.984 kB / 275.3 MB, free: 14.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.29e-06/0.01092, allocations: 4 kB / 275.3 MB, free: 14.68 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.803e-05/0.01097, allocations: 142.1 kB / 275.4 MB, free: 14.54 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01097, allocations: 0 / 275.4 MB, free: 14.54 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001999/0.01117, allocations: 27.89 kB / 275.4 MB, free: 14.51 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 7.868e-05/0.01125, allocations: 107.3 kB / 275.5 MB, free: 14.4 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001255/0.01137, allocations: 59.53 kB / 275.6 MB, free: 14.34 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.01137, allocations: 0 / 275.6 MB, free: 14.34 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.582e-05/0.0114, allocations: 27.61 kB / 275.6 MB, free: 14.3 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003422/0.01174, allocations: 38.83 kB / 275.7 MB, free: 14.27 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006664/0.01241, allocations: 355 kB / 276 MB, free: 13.88 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.625e-05/0.01246, allocations: 67.34 kB / 276.1 MB, free: 13.8 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.995e-05/0.01249, allocations: 8.484 kB / 276.1 MB, free: 13.79 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.678e-05/0.01252, allocations: 16.5 kB / 276.1 MB, free: 13.77 MB / 266.7 MB Notification: Performance of SimCode: time 5.31e-07/0.01252, allocations: 0 / 276.1 MB, free: 13.77 MB / 266.7 MB Notification: Performance of Templates: time 0.003196/0.01572, allocations: 1.184 MB / 277.3 MB, free: 12.64 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.918326031882316]