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.001664/0.001664, allocations: 96.25 kB / 20.96 MB, free: 3.469 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.0016/0.0016, allocations: 156.9 kB / 24.27 MB, free: 172 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.493/1.493, 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.853e-06/1.853e-06, allocations: 0 / 272.2 MB, free: 1.836 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.037e-05/3.222e-05, allocations: 6.25 kB / 272.2 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003555/0.003587, allocations: 2.016 MB / 274.2 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001165/0.004752, allocations: 0.5764 MB / 274.8 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001107/0.004863, allocations: 0 / 274.8 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001175/0.00498, allocations: 19.8 kB / 274.8 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001724/0.005153, allocations: 39.53 kB / 274.8 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002645/0.005417, allocations: 67.8 kB / 274.9 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002018/0.005619, allocations: 131.5 kB / 275 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001455/0.005764, allocations: 42.09 kB / 275.1 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001316/0.005896, allocations: 79.8 kB / 275.1 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.949e-05/0.005986, allocations: 43.88 kB / 275.2 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.013e-05/0.006016, allocations: 12 kB / 275.2 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.563e-05/0.006041, allocations: 15.94 kB / 275.2 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.213e-05/0.006103, allocations: 31.84 kB / 275.2 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.269e-05/0.006176, allocations: 47.84 kB / 275.3 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002404/0.006416, allocations: 143.5 kB / 275.4 MB, free: 14.55 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.444e-06/0.006419, allocations: 0 / 275.4 MB, free: 14.55 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.00642, allocations: 0 / 275.4 MB, free: 14.55 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.006424, allocations: 0 / 275.4 MB, free: 14.55 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.0006878/0.007112, allocations: 377.6 kB / 275.8 MB, free: 14.15 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.007149, allocations: 11.98 kB / 275.8 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.46e-05/0.007223, allocations: 28.84 kB / 275.8 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000277/0.0075, allocations: 165.4 kB / 276 MB, free: 13.93 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.835e-05/0.007519, allocations: 8.375 kB / 276 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.046e-05/0.007559, allocations: 16.38 kB / 276 MB, free: 13.9 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005598/0.008119, allocations: 251.2 kB / 276.3 MB, free: 13.63 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.008131, allocations: 192 / 276.3 MB, free: 13.63 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.008144, allocations: 384 / 276.3 MB, free: 13.63 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.158e-05/0.008156, allocations: 7.938 kB / 276.3 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005051/0.008661, allocations: 91.81 kB / 276.4 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006778/0.009339, allocations: 0.4927 MB / 276.9 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003918/0.009731, allocations: 143.9 kB / 277 MB, free: 12.83 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001665/0.009897, allocations: 66.58 kB / 277.1 MB, free: 12.75 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.131e-05/0.009928, allocations: 15.92 kB / 277.1 MB, free: 12.74 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.057e-05/0.009959, allocations: 34.56 kB / 277.1 MB, free: 12.7 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.082e-06/0.00996, allocations: 0 / 277.1 MB, free: 12.7 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005714/0.01053, allocations: 201.3 kB / 277.3 MB, free: 12.49 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001052/0.01064, allocations: 110.8 kB / 277.4 MB, free: 12.36 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001743/0.01081, allocations: 162.2 kB / 277.6 MB, free: 12.19 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.341e-05/0.01083, allocations: 25.7 kB / 277.6 MB, free: 12.16 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.603e-05/0.01093, allocations: 128.5 kB / 277.7 MB, free: 12.03 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.334e-05/0.01095, allocations: 15.8 kB / 277.7 MB, free: 12.02 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.222e-05/0.01101, allocations: 33.7 kB / 277.8 MB, free: 11.98 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001771/0.01118, allocations: 318.8 kB / 278.1 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001068/0.01129, allocations: 31.97 kB / 278.1 MB, free: 11.62 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001498/0.01144, allocations: 86.95 kB / 278.2 MB, free: 11.52 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002566/0.0117, allocations: 114.7 kB / 278.3 MB, free: 11.38 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.0117, allocations: 0 / 278.3 MB, free: 11.38 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003126/0.01201, allocations: 141.4 kB / 278.5 MB, free: 11.23 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.01203, allocations: 8 kB / 278.5 MB, free: 11.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.01203, allocations: 0 / 278.5 MB, free: 11.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.01205, allocations: 4 kB / 278.5 MB, free: 11.22 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001173/0.01217, allocations: 23.98 kB / 278.5 MB, free: 11.2 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.806e-06/0.01218, allocations: 12.2 kB / 278.5 MB, free: 11.19 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.689e-05/0.01226, allocations: 19.89 kB / 278.5 MB, free: 11.17 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.146e-05/0.01228, allocations: 4 kB / 278.5 MB, free: 11.16 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.0001243/0.0124, allocations: 133.7 kB / 278.7 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001821/0.01258, allocations: 101.5 kB / 278.8 MB, free: 10.92 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.395e-05/0.01265, allocations: 16.78 kB / 278.8 MB, free: 10.9 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.01265, allocations: 0 / 278.8 MB, free: 10.9 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.878e-06/0.01266, allocations: 4 kB / 278.8 MB, free: 10.9 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.01266, allocations: 3.984 kB / 278.8 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002421/0.01291, allocations: 145.2 kB / 278.9 MB, free: 10.72 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.01291, allocations: 0 / 278.9 MB, free: 10.72 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001794/0.01309, allocations: 35.97 kB / 279 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.01309, allocations: 0 / 279 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.635e-05/0.0131, allocations: 8 kB / 279 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.561e-06/0.01311, allocations: 3.938 kB / 279 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.01311, allocations: 4 kB / 279 MB, free: 10.67 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006181/0.01373, allocations: 390.1 kB / 279.4 MB, free: 10.27 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.696e-05/0.01379, allocations: 27.95 kB / 279.4 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.306e-05/0.01381, allocations: 4 kB / 279.4 MB, free: 10.24 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001433/0.01396, allocations: 11.98 kB / 279.4 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.749e-05/0.01399, allocations: 0 / 279.4 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.247e-06/0.014, allocations: 4 kB / 279.4 MB, free: 10.23 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000119/0.01412, allocations: 127.2 kB / 279.5 MB, free: 10.1 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01412, allocations: 0 / 279.5 MB, free: 10.1 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003074/0.01443, allocations: 35.83 kB / 279.6 MB, free: 10.07 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.0001161/0.01454, allocations: 99.25 kB / 279.7 MB, free: 9.961 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002992/0.01484, allocations: 95.81 kB / 279.7 MB, free: 9.867 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.293e-06/0.01484, allocations: 0 / 279.7 MB, free: 9.867 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.617e-05/0.01494, allocations: 23.98 kB / 279.8 MB, free: 9.844 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005054/0.01545, allocations: 65.56 kB / 279.8 MB, free: 9.785 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007179/0.01616, allocations: 380.6 kB / 280.2 MB, free: 9.379 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001284/0.01629, allocations: 114.2 kB / 280.3 MB, free: 9.246 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.953e-05/0.01634, allocations: 8.641 kB / 280.3 MB, free: 9.238 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.064e-05/0.01638, allocations: 12.5 kB / 280.3 MB, free: 9.227 MB / 266.7 MB Notification: Performance of SimCode: time 4.1e-07/0.01638, allocations: 4 kB / 280.3 MB, free: 9.223 MB / 266.7 MB Notification: Performance of Templates: time 0.004469/0.02085, allocations: 1.37 MB / 281.7 MB, free: 7.91 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 480] 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.401391783030704]