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.001908/0.001908, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 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.002267/0.002267, allocations: 213 kB / 23.73 MB, free: 4.16 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.47/1.47, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.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.001708/0.001708, allocations: 51.86 kB / 378.2 MB, free: 2.504 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2922/0.2939, allocations: 53.37 MB / 431.6 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003396/0.2973, allocations: 2.004 MB / 433.6 MB, free: 4.719 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001115/0.2984, allocations: 0.5726 MB / 434.1 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/0.2985, allocations: 7.938 kB / 434.1 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001252/0.2987, allocations: 19.8 kB / 434.2 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002466/0.2989, allocations: 31.72 kB / 434.2 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003739/0.2993, allocations: 71.8 kB / 434.3 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002472/0.2995, allocations: 135.5 kB / 434.4 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001744/0.2997, allocations: 40.39 kB / 434.4 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001331/0.2998, allocations: 59.78 kB / 434.5 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001285/0.3, allocations: 51.69 kB / 434.5 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.516e-05/0.3, allocations: 12 kB / 434.6 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.721e-05/0.3, allocations: 12 kB / 434.6 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.927e-05/0.3001, allocations: 27.86 kB / 434.6 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.337e-05/0.3002, allocations: 55.67 kB / 434.6 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002687/0.3004, allocations: 149.6 kB / 434.8 MB, free: 3.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.3005, allocations: 0 / 434.8 MB, free: 3.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3005, allocations: 0 / 434.8 MB, free: 3.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.358e-05/0.3005, allocations: 0 / 434.8 MB, free: 3.48 MB / 334.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.0006834/0.3012, allocations: 392.1 kB / 435.2 MB, free: 3.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.3012, allocations: 12.03 kB / 435.2 MB, free: 3.059 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.006e-05/0.3012, allocations: 20.8 kB / 435.2 MB, free: 3.039 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003006/0.3015, allocations: 158.2 kB / 435.4 MB, free: 2.859 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.065e-05/0.3016, allocations: 16.36 kB / 435.4 MB, free: 2.844 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.934e-05/0.3016, allocations: 12.38 kB / 435.4 MB, free: 2.832 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005258/0.3021, allocations: 246.9 kB / 435.6 MB, free: 2.566 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.824e-05/0.3021, allocations: 3.984 kB / 435.6 MB, free: 2.562 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.576e-05/0.3022, allocations: 7.984 kB / 435.6 MB, free: 2.555 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.193e-06/0.3022, allocations: 4 kB / 435.6 MB, free: 2.551 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002533/0.3024, allocations: 87.88 kB / 435.7 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006826/0.3031, allocations: 0.4964 MB / 436.2 MB, free: 1.918 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003542/0.3035, allocations: 143.8 kB / 436.4 MB, free: 1.75 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001532/0.3036, allocations: 66.64 kB / 436.4 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.663e-05/0.3036, allocations: 7.938 kB / 436.4 MB, free: 1.668 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.695e-05/0.3037, allocations: 34.56 kB / 436.5 MB, free: 1.625 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.473e-06/0.3037, allocations: 0 / 436.5 MB, free: 1.625 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.000524/0.3042, allocations: 193.4 kB / 436.7 MB, free: 1.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.277e-05/0.3043, allocations: 115.1 kB / 436.8 MB, free: 1.293 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001513/0.3044, allocations: 154.2 kB / 436.9 MB, free: 1.133 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.076e-05/0.3044, allocations: 29.7 kB / 437 MB, free: 1.098 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.341e-05/0.3045, allocations: 116.4 kB / 437.1 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.809e-05/0.3046, allocations: 31.72 kB / 437.1 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.678e-05/0.3046, allocations: 41.7 kB / 437.1 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.3048, allocations: 318.8 kB / 437.5 MB, free: 0.582 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/0.3049, allocations: 40.09 kB / 437.5 MB, free: 0.543 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001848/0.3051, allocations: 133.7 kB / 437.6 MB, free: 372 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003067/0.3054, allocations: 189.5 kB / 437.8 MB, free: 132 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3054, allocations: 0 / 437.8 MB, free: 132 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003877/0.3057, allocations: 201.1 kB / 438 MB, free: 15.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.3058, allocations: 8 kB / 438 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.3058, allocations: 4 kB / 438 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/0.3058, allocations: 8 kB / 438 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001495/0.3059, allocations: 48.38 kB / 438.1 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.305e-05/0.306, allocations: 8 kB / 438.1 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001078/0.3061, allocations: 23.88 kB / 438.1 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.471e-05/0.3061, allocations: 12 kB / 438.1 MB, free: 15.82 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.0001141/0.3062, allocations: 125.8 kB / 438.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001646/0.3064, allocations: 97.47 kB / 438.3 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.12e-05/0.3064, allocations: 20.7 kB / 438.4 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.3064, allocations: 4 kB / 438.4 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.3064, allocations: 0 / 438.4 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.3064, allocations: 240 / 438.4 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002274/0.3067, allocations: 153.2 kB / 438.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3067, allocations: 0 / 438.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00017/0.3068, allocations: 35.92 kB / 438.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-06/0.3068, allocations: 7.922 kB / 438.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.557e-05/0.3069, allocations: 7.984 kB / 438.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.3069, allocations: 4 kB / 438.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3069, allocations: 0 / 438.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000533/0.3074, allocations: 381.3 kB / 438.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.791e-05/0.3075, allocations: 39.78 kB / 439 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.23e-05/0.3075, allocations: 4 kB / 439 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001336/0.3076, allocations: 8 kB / 439 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.92e-05/0.3077, allocations: 7.984 kB / 439 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.537e-06/0.3077, allocations: 4.094 kB / 439 MB, free: 14.87 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.752e-05/0.3078, allocations: 120.1 kB / 439.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3078, allocations: 4 kB / 439.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003176/0.3081, allocations: 27.95 kB / 439.1 MB, free: 14.72 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.0001004/0.3082, allocations: 110.5 kB / 439.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003189/0.3085, allocations: 115.7 kB / 439.4 MB, free: 14.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.3085, allocations: 0 / 439.4 MB, free: 14.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.299e-05/0.3086, allocations: 28.86 kB / 439.4 MB, free: 14.47 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005019/0.3091, allocations: 68.03 kB / 439.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007354/0.3098, allocations: 434.3 kB / 439.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001079/0.3099, allocations: 106.6 kB / 440 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.297e-05/0.31, allocations: 17.41 kB / 440 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.146e-05/0.31, allocations: 15.44 kB / 440 MB, free: 13.79 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.31, allocations: 0 / 440 MB, free: 13.79 MB / 350.1 MB Notification: Performance of Templates: time 0.004743/0.3148, allocations: 1.548 MB / 441.6 MB, free: 12.31 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 -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/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.628044536337256]