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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001637/0.001638, allocations: 110.9 kB / 17.74 MB, free: 5.207 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002002/0.002002, allocations: 176.2 kB / 18.66 MB, free: 4.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.504/1.504, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00188/0.00188, allocations: 55.91 kB / 352 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3139/0.3159, allocations: 49.42 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003734/0.3196, allocations: 2.012 MB / 403.4 MB, free: 6.867 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001098/0.3208, allocations: 0.5298 MB / 403.9 MB, free: 6.332 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001257/0.3209, allocations: 7.938 kB / 403.9 MB, free: 6.324 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001318/0.3211, allocations: 15.86 kB / 403.9 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001677/0.3213, allocations: 27.72 kB / 404 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002915/0.3216, allocations: 55.88 kB / 404 MB, free: 6.227 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001959/0.3218, allocations: 119.6 kB / 404.1 MB, free: 6.109 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001639/0.322, allocations: 57.42 kB / 404.2 MB, free: 6.051 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.396e-05/0.3221, allocations: 51.73 kB / 404.3 MB, free: 6 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001066/0.3222, allocations: 55.75 kB / 404.3 MB, free: 5.945 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.942e-05/0.3222, allocations: 12 kB / 404.3 MB, free: 5.934 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.39e-05/0.3222, allocations: 8 kB / 404.3 MB, free: 5.926 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.617e-05/0.3223, allocations: 27.92 kB / 404.4 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.122e-05/0.3224, allocations: 55.67 kB / 404.4 MB, free: 5.844 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002229/0.3226, allocations: 132.6 kB / 404.5 MB, free: 5.719 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.3226, allocations: 4 kB / 404.5 MB, free: 5.715 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.3226, allocations: 0 / 404.5 MB, free: 5.715 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.212e-05/0.3226, allocations: 3.938 kB / 404.5 MB, free: 5.711 MB / 318.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.0007173/0.3234, allocations: 427.1 kB / 405 MB, free: 5.246 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/0.3234, allocations: 11.97 kB / 405 MB, free: 5.234 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.713e-05/0.3235, allocations: 16.75 kB / 405 MB, free: 5.219 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003328/0.3238, allocations: 212.1 kB / 405.2 MB, free: 4.973 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.797e-05/0.3238, allocations: 16.38 kB / 405.2 MB, free: 4.957 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.797e-05/0.3239, allocations: 16.36 kB / 405.2 MB, free: 4.941 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005666/0.3245, allocations: 253.5 kB / 405.5 MB, free: 4.672 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.114e-05/0.3245, allocations: 3.906 kB / 405.5 MB, free: 4.668 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.05e-05/0.3245, allocations: 4 kB / 405.5 MB, free: 4.664 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.3245, allocations: 4 kB / 405.5 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002769/0.3248, allocations: 87.88 kB / 405.6 MB, free: 4.574 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007511/0.3256, allocations: 0.5882 MB / 406.2 MB, free: 3.914 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003676/0.326, allocations: 143.9 kB / 406.3 MB, free: 3.746 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001605/0.3261, allocations: 82.56 kB / 406.4 MB, free: 3.656 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.672e-05/0.3262, allocations: 4 kB / 406.4 MB, free: 3.652 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.036e-05/0.3262, allocations: 34.56 kB / 406.4 MB, free: 3.609 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.503e-06/0.3262, allocations: 0 / 406.4 MB, free: 3.609 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005601/0.3268, allocations: 185.3 kB / 406.6 MB, free: 3.422 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.128e-05/0.3269, allocations: 114.8 kB / 406.7 MB, free: 3.285 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001115/0.327, allocations: 122.1 kB / 406.8 MB, free: 3.152 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.165e-05/0.327, allocations: 33.7 kB / 406.9 MB, free: 3.113 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.629e-05/0.3271, allocations: 111.9 kB / 407 MB, free: 3 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.92e-05/0.3271, allocations: 27.64 kB / 407 MB, free: 2.973 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.029e-05/0.3272, allocations: 37.7 kB / 407 MB, free: 2.93 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.3274, allocations: 326.9 kB / 407.4 MB, free: 2.602 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001243/0.3275, allocations: 39.97 kB / 407.4 MB, free: 2.562 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001884/0.3277, allocations: 129.7 kB / 407.5 MB, free: 2.387 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003397/0.328, allocations: 197.8 kB / 407.7 MB, free: 2.145 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/0.3281, allocations: 4 kB / 407.7 MB, free: 2.141 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003965/0.3285, allocations: 189.2 kB / 407.9 MB, free: 1.949 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.3285, allocations: 8 kB / 407.9 MB, free: 1.941 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.3285, allocations: 7.938 kB / 407.9 MB, free: 1.934 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.903e-05/0.3285, allocations: 4 kB / 407.9 MB, free: 1.93 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001843/0.3287, allocations: 47.91 kB / 408 MB, free: 1.883 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.208e-05/0.3287, allocations: 4 kB / 408 MB, free: 1.879 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000123/0.3289, allocations: 28.17 kB / 408 MB, free: 1.852 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.746e-05/0.3289, allocations: 12 kB / 408 MB, free: 1.84 MB / 318.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.0001403/0.329, allocations: 137.7 kB / 408.2 MB, free: 1.695 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001574/0.3292, allocations: 89.53 kB / 408.2 MB, free: 1.602 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.765e-05/0.3293, allocations: 16.94 kB / 408.3 MB, free: 1.578 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.3293, allocations: 7.984 kB / 408.3 MB, free: 1.57 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.3293, allocations: 0 / 408.3 MB, free: 1.57 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.3293, allocations: 4 kB / 408.3 MB, free: 1.566 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003044/0.3296, allocations: 213.4 kB / 408.5 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.3297, allocations: 4 kB / 408.5 MB, free: 1.305 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000196/0.3299, allocations: 35.92 kB / 408.5 MB, free: 1.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.631e-06/0.3299, allocations: 3.984 kB / 408.5 MB, free: 1.266 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.658e-05/0.3299, allocations: 8 kB / 408.5 MB, free: 1.258 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.3299, allocations: 0 / 408.5 MB, free: 1.258 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.3299, allocations: 0 / 408.5 MB, free: 1.258 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006058/0.3305, allocations: 382.8 kB / 408.9 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.332e-05/0.3306, allocations: 93.03 kB / 409 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.365e-05/0.3306, allocations: 3.938 kB / 409 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001524/0.3308, allocations: 12 kB / 409 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.989e-05/0.3308, allocations: 3.984 kB / 409 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.202e-05/0.3309, allocations: 4 kB / 409 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.762e-05/0.3309, allocations: 103.3 kB / 409.1 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3309, allocations: 0 / 409.1 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003595/0.3313, allocations: 27.94 kB / 409.1 MB, free: 0.6055 MB / 318.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.0001193/0.3314, allocations: 99.25 kB / 409.2 MB, free: 0.5 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003448/0.3318, allocations: 128.6 kB / 409.4 MB, free: 384 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.3318, allocations: 0 / 409.4 MB, free: 384 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000101/0.3319, allocations: 27.92 kB / 409.4 MB, free: 356 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005153/0.3324, allocations: 63.97 kB / 409.5 MB, free: 292 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007809/0.3332, allocations: 419.3 kB / 409.9 MB, free: 15.84 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003081/0.3335, allocations: 0.7123 MB / 410.6 MB, free: 15.1 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.922e-05/0.3336, allocations: 15.44 kB / 410.6 MB, free: 15.08 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3336, allocations: 0 / 410.6 MB, free: 15.08 MB / 334.1 MB Notification: Performance of Templates: time 0.00369/0.3373, allocations: 1.536 MB / 412.1 MB, free: 13.54 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches