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.001926/0.001926, allocations: 95.61 kB / 20.96 MB, free: 3.457 MB / 18.57 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.002051/0.002051, allocations: 161.3 kB / 24.27 MB, free: 152 kB / 18.57 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.553/1.553, allocations: 177.1 MB / 204.6 MB, free: 5.613 MB / 186.7 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 1.933e-06/1.933e-06, allocations: 0 / 272.3 MB, free: 1.871 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.583e-05/3.776e-05, allocations: 2.312 kB / 272.3 MB, free: 1.867 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.004607/0.004644, allocations: 2.053 MB / 274.3 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001283/0.005927, allocations: 0.5764 MB / 274.9 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001118/0.006039, allocations: 3.938 kB / 274.9 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001248/0.006164, allocations: 23.8 kB / 274.9 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001893/0.006353, allocations: 31.66 kB / 275 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003223/0.006675, allocations: 79.66 kB / 275.1 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002182/0.006893, allocations: 127.5 kB / 275.2 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001475/0.007041, allocations: 42.09 kB / 275.2 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001392/0.00718, allocations: 79.8 kB / 275.3 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.532e-05/0.007275, allocations: 39.88 kB / 275.3 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.061e-05/0.007306, allocations: 12 kB / 275.4 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.663e-05/0.007333, allocations: 12 kB / 275.4 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.826e-05/0.007401, allocations: 35.84 kB / 275.4 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.63e-05/0.007467, allocations: 43.91 kB / 275.4 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002666/0.007734, allocations: 151.3 kB / 275.6 MB, free: 14.55 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.007736, allocations: 0 / 275.6 MB, free: 14.55 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.007738, allocations: 0 / 275.6 MB, free: 14.55 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.575e-06/0.007745, allocations: 4 kB / 275.6 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.0007291/0.008474, allocations: 471.6 kB / 276.1 MB, free: 14.05 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.008513, allocations: 8.031 kB / 276.1 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.77e-05/0.008591, allocations: 32.83 kB / 276.1 MB, free: 14.01 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002683/0.008859, allocations: 172.2 kB / 276.3 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.684e-05/0.008876, allocations: 8.375 kB / 276.3 MB, free: 13.81 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.666e-05/0.008922, allocations: 16.38 kB / 276.3 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005507/0.009473, allocations: 264.1 kB / 276.5 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.009488, allocations: 192 / 276.5 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.911e-05/0.009507, allocations: 8.375 kB / 276.6 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/0.009518, allocations: 11.94 kB / 276.6 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002105/0.009728, allocations: 75.83 kB / 276.6 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008342/0.01056, allocations: 0.6602 MB / 277.3 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003853/0.01095, allocations: 169.3 kB / 277.5 MB, free: 12.49 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001557/0.0111, allocations: 79.11 kB / 277.5 MB, free: 12.4 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.186e-05/0.01114, allocations: 8 kB / 277.5 MB, free: 12.39 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.674e-05/0.01117, allocations: 45.25 kB / 277.6 MB, free: 12.34 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.122e-06/0.01117, allocations: 4 kB / 277.6 MB, free: 12.34 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.000492/0.01167, allocations: 173.4 kB / 277.8 MB, free: 12.16 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.445e-05/0.01176, allocations: 110.8 kB / 277.9 MB, free: 12.03 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002024/0.01196, allocations: 224.5 kB / 278.1 MB, free: 11.79 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.624e-05/0.01199, allocations: 29.7 kB / 278.1 MB, free: 11.76 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/0.0121, allocations: 163.3 kB / 278.3 MB, free: 11.59 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.08e-05/0.01213, allocations: 31.78 kB / 278.3 MB, free: 11.56 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.058e-05/0.01219, allocations: 31.38 kB / 278.3 MB, free: 11.52 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002823/0.01247, allocations: 0.4961 MB / 278.8 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.844e-05/0.01256, allocations: 28.11 kB / 278.9 MB, free: 10.99 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001448/0.01271, allocations: 101.4 kB / 279 MB, free: 10.86 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002114/0.01292, allocations: 125.4 kB / 279.1 MB, free: 10.7 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.01292, allocations: 0 / 279.1 MB, free: 10.7 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002581/0.01318, allocations: 133.4 kB / 279.2 MB, free: 10.56 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.0132, allocations: 8 kB / 279.2 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.209e-06/0.01321, allocations: 0 / 279.2 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.01322, allocations: 4 kB / 279.2 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/0.01334, allocations: 27.92 kB / 279.3 MB, free: 10.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/0.01335, allocations: 4 kB / 279.3 MB, free: 10.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.323e-05/0.01342, allocations: 20.11 kB / 279.3 MB, free: 10.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.202e-05/0.01343, allocations: 4 kB / 279.3 MB, free: 10.5 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.0001409/0.01358, allocations: 176.5 kB / 279.5 MB, free: 10.31 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001698/0.01374, allocations: 93.59 kB / 279.5 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.099e-05/0.01383, allocations: 20.77 kB / 279.6 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.01383, allocations: 7.938 kB / 279.6 MB, free: 10.19 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/0.01384, allocations: 4 kB / 279.6 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.379e-06/0.01384, allocations: 0 / 279.6 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002752/0.01412, allocations: 168.5 kB / 279.7 MB, free: 9.984 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.01412, allocations: 7.938 kB / 279.8 MB, free: 9.977 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001978/0.01432, allocations: 31.98 kB / 279.8 MB, free: 9.945 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.01432, allocations: 0 / 279.8 MB, free: 9.945 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001411/0.01446, allocations: 8 kB / 279.8 MB, free: 9.938 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.01447, allocations: 0 / 279.8 MB, free: 9.938 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/0.01447, allocations: 7.984 kB / 279.8 MB, free: 9.93 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006001/0.01507, allocations: 469.3 kB / 280.3 MB, free: 9.449 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.904e-05/0.01514, allocations: 31.86 kB / 280.3 MB, free: 9.418 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.226e-05/0.01517, allocations: 4 kB / 280.3 MB, free: 9.414 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00012/0.01529, allocations: 7.984 kB / 280.3 MB, free: 9.406 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.65e-05/0.01534, allocations: 8.031 kB / 280.3 MB, free: 9.398 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.938e-06/0.01535, allocations: 4 kB / 280.3 MB, free: 9.395 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000132/0.01548, allocations: 160.7 kB / 280.5 MB, free: 9.238 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01548, allocations: 0 / 280.5 MB, free: 9.238 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002938/0.01578, allocations: 31.89 kB / 280.5 MB, free: 9.207 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.0001291/0.01591, allocations: 107.4 kB / 280.6 MB, free: 9.094 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002827/0.01619, allocations: 91.95 kB / 280.7 MB, free: 9 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.01619, allocations: 4.062 kB / 280.7 MB, free: 8.996 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.843e-05/0.01628, allocations: 35.61 kB / 280.7 MB, free: 8.957 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005383/0.01682, allocations: 59.78 kB / 280.8 MB, free: 8.898 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000785/0.0176, allocations: 383.6 kB / 281.2 MB, free: 8.488 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001351/0.01774, allocations: 106.2 kB / 281.3 MB, free: 8.359 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.988e-05/0.01778, allocations: 8.656 kB / 281.3 MB, free: 8.352 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.771e-05/0.01782, allocations: 16.5 kB / 281.3 MB, free: 8.336 MB / 266.7 MB Notification: Performance of SimCode: time 6.41e-07/0.01783, allocations: 0 / 281.3 MB, free: 8.336 MB / 266.7 MB Notification: Performance of Templates: time 0.004977/0.0228, allocations: 1.38 MB / 282.7 MB, free: 7.016 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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_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.436876391991973]