Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.001546/0.001546, allocations: 120.8 kB / 18.46 MB, free: 4.449 MB / 14.72 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.001633/0.001633, allocations: 190.9 kB / 21.4 MB, free: 1.52 MB / 14.72 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 1.364/1.364, allocations: 225.6 MB / 249.8 MB, free: 3.711 MB / 190.1 MB " [Timeout remaining time 178] 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.ClockedWithDiscreteController,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.ClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,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.ClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 51.92 kB / 366.8 MB, free: 368 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08746/0.08887, allocations: 52.14 MB / 418.9 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003197/0.09207, allocations: 2.023 MB / 420.9 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008839/0.09295, allocations: 0.522 MB / 421.5 MB, free: 9.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.681e-05/0.09304, allocations: 7.938 kB / 421.5 MB, free: 9.562 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000103/0.09314, allocations: 23.8 kB / 421.5 MB, free: 9.539 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001266/0.09327, allocations: 27.77 kB / 421.5 MB, free: 9.512 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002204/0.09349, allocations: 59.88 kB / 421.6 MB, free: 9.453 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001792/0.09367, allocations: 119.5 kB / 421.7 MB, free: 9.336 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001363/0.0938, allocations: 49.41 kB / 421.8 MB, free: 9.285 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.965e-05/0.09388, allocations: 47.8 kB / 421.8 MB, free: 9.238 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.06e-05/0.09397, allocations: 55.7 kB / 421.9 MB, free: 9.184 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.377e-05/0.094, allocations: 12 kB / 421.9 MB, free: 9.172 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.678e-05/0.09402, allocations: 16 kB / 421.9 MB, free: 9.156 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.541e-05/0.09406, allocations: 27.91 kB / 421.9 MB, free: 9.129 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.653e-05/0.09413, allocations: 59.67 kB / 422 MB, free: 9.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001905/0.09432, allocations: 123.4 kB / 422.1 MB, free: 8.949 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.09432, allocations: 0 / 422.1 MB, free: 8.949 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.09432, allocations: 0 / 422.1 MB, free: 8.949 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.367e-06/0.09433, allocations: 0 / 422.1 MB, free: 8.949 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.000636/0.09497, allocations: 439.9 kB / 422.5 MB, free: 8.473 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.2e-05/0.095, allocations: 8.031 kB / 422.5 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.272e-05/0.09504, allocations: 20.84 kB / 422.5 MB, free: 8.445 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002604/0.0953, allocations: 208.2 kB / 422.7 MB, free: 8.203 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.78e-05/0.09532, allocations: 12.38 kB / 422.8 MB, free: 8.191 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.409e-05/0.09535, allocations: 12.38 kB / 422.8 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004982/0.09585, allocations: 262.1 kB / 423 MB, free: 7.902 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.09587, allocations: 0 / 423 MB, free: 7.902 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.448e-05/0.09588, allocations: 4 kB / 423 MB, free: 7.898 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.181e-06/0.09589, allocations: 4 kB / 423 MB, free: 7.895 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002611/0.09615, allocations: 87.88 kB / 423.1 MB, free: 7.809 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006467/0.09679, allocations: 0.5844 MB / 423.7 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003425/0.09714, allocations: 139.8 kB / 423.8 MB, free: 6.988 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001586/0.09729, allocations: 78.56 kB / 423.9 MB, free: 6.902 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.63e-05/0.09732, allocations: 3.984 kB / 423.9 MB, free: 6.898 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.863e-05/0.09735, allocations: 42.56 kB / 424 MB, free: 6.848 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.163e-06/0.09735, allocations: 4 kB / 424 MB, free: 6.844 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005276/0.09788, allocations: 193.2 kB / 424.2 MB, free: 6.648 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.091e-05/0.09796, allocations: 114.9 kB / 424.3 MB, free: 6.512 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001094/0.09807, allocations: 126.1 kB / 424.4 MB, free: 6.375 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.832e-05/0.09809, allocations: 33.64 kB / 424.4 MB, free: 6.336 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.03e-05/0.09816, allocations: 120 kB / 424.5 MB, free: 6.215 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.515e-05/0.09818, allocations: 23.84 kB / 424.6 MB, free: 6.191 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.432e-05/0.09824, allocations: 37.7 kB / 424.6 MB, free: 6.148 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.09837, allocations: 318.8 kB / 424.9 MB, free: 5.828 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001144/0.09848, allocations: 35.97 kB / 425 MB, free: 5.793 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001843/0.09867, allocations: 141.6 kB / 425.1 MB, free: 5.605 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003011/0.09897, allocations: 189.5 kB / 425.3 MB, free: 5.371 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.09897, allocations: 0 / 425.3 MB, free: 5.371 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003751/0.09935, allocations: 193.2 kB / 425.5 MB, free: 5.176 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.09936, allocations: 8 kB / 425.5 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.213e-06/0.09937, allocations: 4 kB / 425.5 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.09938, allocations: 4.469 kB / 425.5 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000151/0.09954, allocations: 51.91 kB / 425.5 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.09954, allocations: 4 kB / 425.5 MB, free: 5.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.966e-05/0.09964, allocations: 19.94 kB / 425.6 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.239e-05/0.09966, allocations: 8 kB / 425.6 MB, free: 5.078 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (21): * Single equations (assignments): 21 * 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.0001166/0.09977, allocations: 141.6 kB / 425.7 MB, free: 4.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001539/0.09993, allocations: 93.53 kB / 425.8 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.191e-05/0.09999, allocations: 16.7 kB / 425.8 MB, free: 4.809 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.57e-06/0.09999, allocations: 4 kB / 425.8 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.1, allocations: 4 kB / 425.8 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.1, allocations: 0 / 425.8 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002737/0.1003, allocations: 205.5 kB / 426 MB, free: 4.551 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.1003, allocations: 0 / 426 MB, free: 4.551 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001834/0.1005, allocations: 40.38 kB / 426.1 MB, free: 4.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.1005, allocations: 4 kB / 426.1 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.485e-05/0.1005, allocations: 8 kB / 426.1 MB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1005, allocations: 0 / 426.1 MB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1005, allocations: 3.938 kB / 426.1 MB, free: 4.496 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005464/0.101, allocations: 389.5 kB / 426.5 MB, free: 4.098 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.127e-05/0.1011, allocations: 97.02 kB / 426.5 MB, free: 3.984 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.889e-05/0.1011, allocations: 0 / 426.5 MB, free: 3.984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001348/0.1012, allocations: 8 kB / 426.6 MB, free: 3.977 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.188e-05/0.1013, allocations: 12.05 kB / 426.6 MB, free: 3.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.03e-05/0.1013, allocations: 4 kB / 426.6 MB, free: 3.961 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.502e-05/0.1014, allocations: 99.27 kB / 426.7 MB, free: 3.863 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1014, allocations: 0 / 426.7 MB, free: 3.863 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003124/0.1017, allocations: 27.95 kB / 426.7 MB, free: 3.836 MB / 350.1 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.0001033/0.1018, allocations: 99.25 kB / 426.8 MB, free: 3.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003352/0.1021, allocations: 127.7 kB / 426.9 MB, free: 3.605 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.1021, allocations: 0 / 426.9 MB, free: 3.605 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001017/0.1022, allocations: 27.92 kB / 426.9 MB, free: 3.578 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004565/0.1027, allocations: 61.94 kB / 427 MB, free: 3.523 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006862/0.1034, allocations: 427.2 kB / 427.4 MB, free: 3.066 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000332/0.1037, allocations: 0.7161 MB / 428.1 MB, free: 2.324 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.073e-05/0.1037, allocations: 19.44 kB / 428.2 MB, free: 2.305 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1037, allocations: 0 / 428.2 MB, free: 2.305 MB / 350.1 MB Notification: Performance of Templates: time 0.003194/0.1069, allocations: 1.548 MB / 429.7 MB, free: 0.7578 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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: 6.716282168868929]