Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.001376/0.001376, allocations: 81.66 kB / 20.68 MB, free: 1.023 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.001367/0.001367, allocations: 145.7 kB / 23.93 MB, free: 4.168 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.4/1.4, allocations: 173.3 MB / 200.4 MB, free: 12.88 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.ExactlyClockedWithDiscreteController,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.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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.994e-06/1.994e-06, allocations: 0.5156 kB / 318.9 MB, free: 3.559 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.105e-05/3.304e-05, allocations: 2.281 kB / 318.9 MB, free: 3.555 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.00319/0.003223, allocations: 1.987 MB / 320.9 MB, free: 2.23 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001006/0.004229, allocations: 0.5404 MB / 321.4 MB, free: 1.867 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001146/0.004344, allocations: 3.094 kB / 321.4 MB, free: 1.867 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001365/0.00448, allocations: 17.16 kB / 321.4 MB, free: 1.855 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001902/0.004671, allocations: 41.92 kB / 321.5 MB, free: 1.824 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003036/0.004974, allocations: 70.47 kB / 321.6 MB, free: 1.785 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002143/0.005189, allocations: 134.1 kB / 321.7 MB, free: 1.719 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001688/0.005357, allocations: 46.27 kB / 321.7 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000141/0.005498, allocations: 75.52 kB / 321.8 MB, free: 1.656 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.267e-05/0.005591, allocations: 42.23 kB / 321.8 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.334e-05/0.005624, allocations: 10.38 kB / 321.9 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.063e-05/0.005655, allocations: 10.78 kB / 321.9 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.559e-05/0.005731, allocations: 40.28 kB / 321.9 MB, free: 1.613 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.277e-05/0.005793, allocations: 37.94 kB / 321.9 MB, free: 1.598 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002649/0.006058, allocations: 143.7 kB / 322.1 MB, free: 1.539 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.006062, allocations: 1.375 kB / 322.1 MB, free: 1.539 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.006064, allocations: 4 kB / 322.1 MB, free: 1.535 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.00607, allocations: 0 / 322.1 MB, free: 1.535 MB / 286.1 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.0006659/0.006736, allocations: 381.9 kB / 322.5 MB, free: 1.203 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/0.006784, allocations: 13.95 kB / 322.5 MB, free: 1.199 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.009e-05/0.006844, allocations: 17.06 kB / 322.5 MB, free: 1.191 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003067/0.00715, allocations: 162.2 kB / 322.7 MB, free: 1.035 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.738e-05/0.007168, allocations: 9.969 kB / 322.7 MB, free: 1.031 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.684e-05/0.007205, allocations: 21.55 kB / 322.7 MB, free: 1.02 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005079/0.007712, allocations: 250.3 kB / 322.9 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.978e-05/0.007732, allocations: 0.9375 kB / 322.9 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.775e-05/0.00775, allocations: 10.28 kB / 322.9 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.924e-06/0.007758, allocations: 7.312 kB / 322.9 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002765/0.008034, allocations: 91.69 kB / 323 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004992/0.008534, allocations: 0.4938 MB / 323.5 MB, free: 380 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003421/0.008876, allocations: 136.5 kB / 323.7 MB, free: 284 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001539/0.00903, allocations: 69.52 kB / 323.7 MB, free: 244 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.09e-05/0.009061, allocations: 4.109 kB / 323.7 MB, free: 244 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.934e-05/0.00908, allocations: 41.92 kB / 323.8 MB, free: 196 kB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.553e-06/0.009082, allocations: 0 / 323.8 MB, free: 196 kB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005235/0.009605, allocations: 184.1 kB / 324 MB, free: 116 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.1e-05/0.009686, allocations: 112.8 kB / 324.1 MB, free: 15.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001583/0.009844, allocations: 161.4 kB / 324.2 MB, free: 15.86 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.063e-05/0.009865, allocations: 27.05 kB / 324.3 MB, free: 15.83 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.863e-05/0.009944, allocations: 114.5 kB / 324.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.02e-05/0.009974, allocations: 25.72 kB / 324.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.306e-05/0.01003, allocations: 26.67 kB / 324.4 MB, free: 15.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.01016, allocations: 329.5 kB / 324.7 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000113/0.01028, allocations: 33.56 kB / 324.8 MB, free: 15.35 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001403/0.01042, allocations: 81.98 kB / 324.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002381/0.01066, allocations: 112.5 kB / 325 MB, free: 15.19 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.01066, allocations: 0 / 325 MB, free: 15.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003014/0.01096, allocations: 139.3 kB / 325.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.01097, allocations: 6.875 kB / 325.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.01098, allocations: 2.203 kB / 325.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.011, allocations: 6.75 kB / 325.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001223/0.01112, allocations: 34.7 kB / 325.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.01113, allocations: 3.547 kB / 325.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.972e-05/0.01122, allocations: 19.55 kB / 325.2 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.908e-06/0.01123, allocations: 6.25 kB / 325.2 MB, free: 15.09 MB / 302.1 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.000115/0.01134, allocations: 127.6 kB / 325.3 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001585/0.0115, allocations: 93.52 kB / 325.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.792e-05/0.01158, allocations: 19.58 kB / 325.4 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.01158, allocations: 6.75 kB / 325.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.01159, allocations: 2.031 kB / 325.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.01159, allocations: 0.6562 kB / 325.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002609/0.01186, allocations: 144.3 kB / 325.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.01186, allocations: 1.375 kB / 325.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001832/0.01204, allocations: 41.91 kB / 325.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.01204, allocations: 1.375 kB / 325.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.396e-05/0.01206, allocations: 1.984 kB / 325.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-06/0.01206, allocations: 1.375 kB / 325.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.01206, allocations: 2.031 kB / 325.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005731/0.01264, allocations: 391.1 kB / 326 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.553e-05/0.0127, allocations: 25.25 kB / 326 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.422e-05/0.01273, allocations: 2.656 kB / 326 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000146/0.01287, allocations: 15.91 kB / 326 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.743e-05/0.01292, allocations: 3.422 kB / 326 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.908e-06/0.01293, allocations: 8.797 kB / 326 MB, free: 14.44 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001059/0.01303, allocations: 118.9 kB / 326.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.01303, allocations: 0 / 326.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003138/0.01335, allocations: 35 kB / 326.2 MB, free: 14.34 MB / 302.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.0001161/0.01346, allocations: 102.6 kB / 326.3 MB, free: 14.25 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003257/0.01379, allocations: 92.61 kB / 326.4 MB, free: 14.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.01379, allocations: 0 / 326.4 MB, free: 14.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001064/0.0139, allocations: 30.98 kB / 326.4 MB, free: 14.22 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005471/0.01445, allocations: 71.17 kB / 326.5 MB, free: 14.19 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007133/0.01516, allocations: 368.7 kB / 326.8 MB, free: 13.92 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000124/0.01528, allocations: 111.4 kB / 327 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.492e-05/0.01533, allocations: 11.66 kB / 327 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.287e-05/0.01537, allocations: 14.09 kB / 327 MB, free: 13.82 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.01537, allocations: 0 / 327 MB, free: 13.82 MB / 302.1 MB Notification: Performance of Templates: time 0.005151/0.02052, allocations: 1.346 MB / 328.3 MB, free: 13.68 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.268522743135691]