Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.001612/0.001612, allocations: 75.73 kB / 21.24 MB, free: 400 kB / 14.72 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.002156/0.002156, allocations: 168.9 kB / 24.5 MB, free: 3.453 MB / 14.72 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.457/1.457, allocations: 177.2 MB / 204.9 MB, free: 9.023 MB / 190.1 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.ExactlyClockedWithDiscreteController,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.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.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001586/0.001586, allocations: 51.75 kB / 325.5 MB, free: 468 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1038, allocations: 53.35 MB / 378.9 MB, free: 15.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003671/0.1075, allocations: 1.998 MB / 380.9 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00116/0.1087, allocations: 0.5804 MB / 381.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001252/0.1088, allocations: 7.938 kB / 381.5 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001254/0.1089, allocations: 15.8 kB / 381.5 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001894/0.1091, allocations: 31.72 kB / 381.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002967/0.1094, allocations: 71.8 kB / 381.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002119/0.1096, allocations: 135.5 kB / 381.7 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001449/0.1097, allocations: 34.11 kB / 381.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.543e-05/0.1098, allocations: 59.72 kB / 381.8 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001001/0.1099, allocations: 55.69 kB / 381.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.888e-05/0.11, allocations: 12 kB / 381.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.59e-05/0.11, allocations: 12 kB / 381.9 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.48e-05/0.1101, allocations: 23.92 kB / 381.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.973e-05/0.1101, allocations: 59.61 kB / 382 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002403/0.1104, allocations: 147.3 kB / 382.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1104, allocations: 0 / 382.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1104, allocations: 0 / 382.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.7e-06/0.1104, allocations: 4 kB / 382.1 MB, free: 12.58 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.000652/0.111, allocations: 385.5 kB / 382.5 MB, free: 12.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.1111, allocations: 8.031 kB / 382.5 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.025e-05/0.1111, allocations: 24.8 kB / 382.5 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00029/0.1114, allocations: 162.2 kB / 382.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.139e-05/0.1114, allocations: 16.38 kB / 382.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.22e-05/0.1115, allocations: 12.38 kB / 382.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005086/0.112, allocations: 254.9 kB / 383 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.112, allocations: 0 / 383 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.494e-05/0.112, allocations: 4 kB / 383 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-06/0.112, allocations: 4 kB / 383 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000273/0.1123, allocations: 95.86 kB / 383.1 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005913/0.1129, allocations: 0.4888 MB / 383.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003528/0.1132, allocations: 135.7 kB / 383.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001677/0.1134, allocations: 78.75 kB / 383.8 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.607e-05/0.1134, allocations: 4 kB / 383.8 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.669e-05/0.1134, allocations: 30.56 kB / 383.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.242e-06/0.1134, allocations: 0 / 383.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005414/0.114, allocations: 189.4 kB / 384 MB, free: 10.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.618e-05/0.1141, allocations: 118.7 kB / 384.1 MB, free: 10.4 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001485/0.1142, allocations: 163 kB / 384.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.891e-05/0.1142, allocations: 29.7 kB / 384.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.564e-05/0.1143, allocations: 112.4 kB / 384.4 MB, free: 10.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.731e-05/0.1143, allocations: 23.84 kB / 384.4 MB, free: 10.06 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.549e-05/0.1144, allocations: 34.09 kB / 384.5 MB, free: 10.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.1146, allocations: 326.8 kB / 384.8 MB, free: 9.691 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001236/0.1147, allocations: 44.03 kB / 384.8 MB, free: 9.648 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001856/0.1149, allocations: 137.1 kB / 385 MB, free: 9.469 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003139/0.1152, allocations: 193.5 kB / 385.1 MB, free: 9.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.1152, allocations: 0 / 385.1 MB, free: 9.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003876/0.1156, allocations: 205.1 kB / 385.3 MB, free: 9.023 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.1156, allocations: 4 kB / 385.3 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.1156, allocations: 4 kB / 385.3 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.802e-05/0.1156, allocations: 12.41 kB / 385.4 MB, free: 9.004 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001573/0.1158, allocations: 47.92 kB / 385.4 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/0.1158, allocations: 7.984 kB / 385.4 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001092/0.1159, allocations: 19.89 kB / 385.4 MB, free: 8.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.71e-05/0.1159, allocations: 12 kB / 385.4 MB, free: 8.918 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.0001157/0.116, allocations: 133.7 kB / 385.6 MB, free: 8.777 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001623/0.1162, allocations: 97.47 kB / 385.7 MB, free: 8.676 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.845e-05/0.1163, allocations: 24.77 kB / 385.7 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.1163, allocations: 4.234 kB / 385.7 MB, free: 8.648 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.167e-06/0.1163, allocations: 0 / 385.7 MB, free: 8.648 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.1163, allocations: 7.984 kB / 385.7 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000225/0.1165, allocations: 133.3 kB / 385.8 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.1165, allocations: 4 kB / 385.8 MB, free: 8.477 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001882/0.1167, allocations: 39.91 kB / 385.9 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.1167, allocations: 3.938 kB / 385.9 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.312e-05/0.1167, allocations: 4 kB / 385.9 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.1167, allocations: 4 kB / 385.9 MB, free: 8.426 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1167, allocations: 0 / 385.9 MB, free: 8.426 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005568/0.1173, allocations: 383.4 kB / 386.3 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.164e-05/0.1173, allocations: 39.8 kB / 386.3 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.098e-05/0.1174, allocations: 0 / 386.3 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001437/0.1175, allocations: 11.98 kB / 386.3 MB, free: 7.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.475e-05/0.1175, allocations: 11.92 kB / 386.3 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.107e-06/0.1175, allocations: 4 kB / 386.3 MB, free: 7.965 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.157e-05/0.1176, allocations: 115.2 kB / 386.4 MB, free: 7.852 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1176, allocations: 0 / 386.4 MB, free: 7.852 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003275/0.118, allocations: 31.95 kB / 386.5 MB, free: 7.82 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.0001049/0.1181, allocations: 103.3 kB / 386.6 MB, free: 7.711 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000349/0.1184, allocations: 119.8 kB / 386.7 MB, free: 7.594 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1184, allocations: 3.938 kB / 386.7 MB, free: 7.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001022/0.1185, allocations: 28.86 kB / 386.7 MB, free: 7.562 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005167/0.119, allocations: 63.7 kB / 386.8 MB, free: 7.504 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007448/0.1198, allocations: 418.3 kB / 387.2 MB, free: 7.062 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001186/0.1199, allocations: 114.7 kB / 387.3 MB, free: 6.93 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.03e-05/0.12, allocations: 17.48 kB / 387.3 MB, free: 6.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.069e-05/0.12, allocations: 20.48 kB / 387.3 MB, free: 6.891 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.12, allocations: 3.938 kB / 387.4 MB, free: 6.887 MB / 350.1 MB Notification: Performance of Templates: time 0.004529/0.1245, allocations: 1.447 MB / 388.8 MB, free: 5.504 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.3487648639129475]