Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001568/0.001568, allocations: 113.6 kB / 17.83 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001853/0.001853, allocations: 208.6 kB / 18.79 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.424/1.424, allocations: 230.4 MB / 250 MB, free: 9.008 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001922/0.001922, allocations: 67.83 kB / 367.3 MB, free: 7.051 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3172/0.3192, allocations: 53.31 MB / 420.6 MB, free: 8.371 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.00353/0.3227, allocations: 2.054 MB / 422.7 MB, free: 6.312 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001198/0.3239, allocations: 0.6116 MB / 423.3 MB, free: 5.695 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001228/0.324, allocations: 0 / 423.3 MB, free: 5.695 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001405/0.3242, allocations: 23.73 kB / 423.3 MB, free: 5.672 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001831/0.3243, allocations: 31.72 kB / 423.4 MB, free: 5.641 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003171/0.3247, allocations: 67.86 kB / 423.4 MB, free: 5.574 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002068/0.3249, allocations: 131.5 kB / 423.5 MB, free: 5.445 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001456/0.325, allocations: 41.84 kB / 423.6 MB, free: 5.402 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.443e-05/0.3251, allocations: 55.78 kB / 423.6 MB, free: 5.348 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.216e-05/0.3252, allocations: 55.7 kB / 423.7 MB, free: 5.293 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.232e-05/0.3252, allocations: 12 kB / 423.7 MB, free: 5.281 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.11e-05/0.3252, allocations: 11.94 kB / 423.7 MB, free: 5.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.879e-05/0.3253, allocations: 39.84 kB / 423.8 MB, free: 5.23 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.747e-05/0.3254, allocations: 71.59 kB / 423.8 MB, free: 5.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002452/0.3256, allocations: 147.1 kB / 424 MB, free: 5.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.3256, allocations: 0 / 424 MB, free: 5.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3256, allocations: 0 / 424 MB, free: 5.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.204e-06/0.3257, allocations: 4 kB / 424 MB, free: 5.016 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.0006451/0.3263, allocations: 446.8 kB / 424.4 MB, free: 4.531 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.579e-05/0.3263, allocations: 12.03 kB / 424.4 MB, free: 4.52 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.49e-05/0.3264, allocations: 20.8 kB / 424.4 MB, free: 4.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003173/0.3267, allocations: 223.7 kB / 424.7 MB, free: 4.246 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.453e-05/0.3267, allocations: 16.36 kB / 424.7 MB, free: 4.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.912e-05/0.3268, allocations: 12.38 kB / 424.7 MB, free: 4.219 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005319/0.3273, allocations: 250.9 kB / 424.9 MB, free: 3.949 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.842e-05/0.3273, allocations: 7.922 kB / 424.9 MB, free: 3.941 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.696e-05/0.3273, allocations: 4 kB / 424.9 MB, free: 3.938 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.176e-06/0.3273, allocations: 4 kB / 425 MB, free: 3.934 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002557/0.3276, allocations: 87.88 kB / 425 MB, free: 3.848 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007071/0.3283, allocations: 0.6038 MB / 425.6 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003838/0.3287, allocations: 147.8 kB / 425.8 MB, free: 2.996 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001598/0.3288, allocations: 70.64 kB / 425.9 MB, free: 2.918 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.917e-05/0.3289, allocations: 0 / 425.9 MB, free: 2.918 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.944e-05/0.3289, allocations: 38.5 kB / 425.9 MB, free: 2.871 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.072e-06/0.3289, allocations: 0 / 425.9 MB, free: 2.871 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005292/0.3294, allocations: 193.3 kB / 426.1 MB, free: 2.676 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.077e-05/0.3295, allocations: 110.8 kB / 426.2 MB, free: 2.543 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001721/0.3297, allocations: 162.9 kB / 426.3 MB, free: 2.375 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.796e-05/0.3297, allocations: 25.7 kB / 426.4 MB, free: 2.344 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.227e-05/0.3298, allocations: 112.9 kB / 426.5 MB, free: 2.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.186e-05/0.3298, allocations: 31.78 kB / 426.5 MB, free: 2.199 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.195e-05/0.3299, allocations: 45.83 kB / 426.6 MB, free: 2.148 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.3301, allocations: 318.8 kB / 426.9 MB, free: 1.828 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001158/0.3302, allocations: 43.91 kB / 426.9 MB, free: 1.785 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001928/0.3304, allocations: 140.9 kB / 427.1 MB, free: 1.602 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003065/0.3307, allocations: 181.5 kB / 427.2 MB, free: 1.375 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.3307, allocations: 3.984 kB / 427.2 MB, free: 1.371 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003737/0.331, allocations: 201.2 kB / 427.4 MB, free: 1.168 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.3311, allocations: 8 kB / 427.4 MB, free: 1.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.3311, allocations: 4 kB / 427.4 MB, free: 1.156 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.3311, allocations: 4 kB / 427.4 MB, free: 1.152 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001593/0.3313, allocations: 48.38 kB / 427.5 MB, free: 1.105 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.265e-05/0.3313, allocations: 7.938 kB / 427.5 MB, free: 1.098 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001084/0.3314, allocations: 23.94 kB / 427.5 MB, free: 1.074 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.549e-05/0.3314, allocations: 8 kB / 427.5 MB, free: 1.066 MB / 334.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.000136/0.3315, allocations: 141.7 kB / 427.7 MB, free: 0.918 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000162/0.3317, allocations: 93.53 kB / 427.8 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.549e-05/0.3318, allocations: 20.7 kB / 427.8 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.3318, allocations: 0 / 427.8 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.108e-06/0.3318, allocations: 8 kB / 427.8 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.3318, allocations: 4 kB / 427.8 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003004/0.3321, allocations: 221.5 kB / 428 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.3321, allocations: 0 / 428 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000208/0.3323, allocations: 31.98 kB / 428 MB, free: 500 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.3323, allocations: 0 / 428 MB, free: 500 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.755e-05/0.3323, allocations: 4 kB / 428 MB, free: 496 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.3323, allocations: 3.938 kB / 428 MB, free: 492 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.598e-06/0.3323, allocations: 7.984 kB / 428.1 MB, free: 484 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000561/0.3329, allocations: 383.4 kB / 428.4 MB, free: 80 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001112/0.333, allocations: 105.2 kB / 428.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.761e-05/0.333, allocations: 8 kB / 428.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001367/0.3331, allocations: 4 kB / 428.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.693e-05/0.3332, allocations: 15.97 kB / 428.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.207e-06/0.3332, allocations: 8.062 kB / 428.6 MB, free: 15.92 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.853e-05/0.3333, allocations: 119.4 kB / 428.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3333, allocations: 0 / 428.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003246/0.3336, allocations: 28 kB / 428.7 MB, free: 15.78 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.0001111/0.3338, allocations: 99.28 kB / 428.8 MB, free: 15.67 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003457/0.3341, allocations: 132 kB / 428.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.3341, allocations: 0 / 428.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.324e-05/0.3342, allocations: 23.98 kB / 429 MB, free: 15.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005257/0.3347, allocations: 66.62 kB / 429 MB, free: 15.46 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008123/0.3355, allocations: 422.1 kB / 429.4 MB, free: 15.01 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000375/0.3359, allocations: 0.7279 MB / 430.2 MB, free: 14.26 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.532e-05/0.336, allocations: 13.42 kB / 430.2 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.401e-05/0.336, allocations: 15.44 kB / 430.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of SimCode: time 4.6e-07/0.336, allocations: 0 / 430.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of Templates: time 0.004663/0.3407, allocations: 1.373 MB / 431.6 MB, free: 12.9 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches