Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001714/0.001715, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00201/0.00201, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.583/1.583, allocations: 227.4 MB / 247 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002689/0.00269, allocations: 59.91 kB / 358.3 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3334/0.3361, allocations: 50.54 MB / 408.8 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003896/0.34, allocations: 2.026 MB / 410.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001095/0.3412, allocations: 0.5571 MB / 411.4 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001272/0.3413, allocations: 0 / 411.4 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001329/0.3415, allocations: 19.8 kB / 411.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001628/0.3417, allocations: 35.72 kB / 411.4 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002722/0.3419, allocations: 51.88 kB / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002089/0.3422, allocations: 127.5 kB / 411.6 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001723/0.3423, allocations: 57.36 kB / 411.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.343e-05/0.3424, allocations: 51.72 kB / 411.7 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001099/0.3426, allocations: 63.75 kB / 411.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.011e-05/0.3426, allocations: 12 kB / 411.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.154e-05/0.3426, allocations: 8 kB / 411.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.86e-05/0.3427, allocations: 27.86 kB / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.65e-05/0.3427, allocations: 55.73 kB / 411.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002192/0.343, allocations: 130.4 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.343, allocations: 0 / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.343, allocations: 0 / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.343, allocations: 0 / 412 MB, free: 14.27 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006905/0.3437, allocations: 438.8 kB / 412.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/0.3437, allocations: 12.03 kB / 412.4 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.832e-05/0.3438, allocations: 46.73 kB / 412.5 MB, free: 13.72 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.381e-05/0.3439, allocations: 16.84 kB / 412.5 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003423/0.3442, allocations: 207.8 kB / 412.7 MB, free: 13.47 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.813e-05/0.3442, allocations: 8.375 kB / 412.7 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.599e-05/0.3443, allocations: 16.38 kB / 412.7 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005484/0.3448, allocations: 251.2 kB / 413 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.668e-05/0.3449, allocations: 4 kB / 413 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.799e-05/0.3449, allocations: 4 kB / 413 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.3449, allocations: 8 kB / 413 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002631/0.3452, allocations: 79.88 kB / 413.1 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000785/0.346, allocations: 0.5961 MB / 413.7 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000381/0.3464, allocations: 147.6 kB / 413.8 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000173/0.3465, allocations: 82.77 kB / 413.9 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.957e-05/0.3466, allocations: 4 kB / 413.9 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.681e-05/0.3466, allocations: 38.55 kB / 413.9 MB, free: 12.1 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.573e-06/0.3466, allocations: 0 / 413.9 MB, free: 12.1 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.000595/0.3472, allocations: 181.4 kB / 414.1 MB, free: 11.92 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.867e-05/0.3473, allocations: 114.9 kB / 414.2 MB, free: 11.78 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001283/0.3475, allocations: 134.2 kB / 414.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.982e-05/0.3475, allocations: 25.7 kB / 414.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.531e-05/0.3476, allocations: 115.9 kB / 414.5 MB, free: 11.49 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.033e-05/0.3476, allocations: 27.84 kB / 414.5 MB, free: 11.46 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.499e-05/0.3477, allocations: 29.72 kB / 414.6 MB, free: 11.43 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000181/0.3479, allocations: 322.8 kB / 414.9 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000125/0.348, allocations: 31.97 kB / 414.9 MB, free: 11.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002102/0.3482, allocations: 153 kB / 415.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003312/0.3486, allocations: 189.5 kB / 415.2 MB, free: 10.64 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.3486, allocations: 3.938 kB / 415.2 MB, free: 10.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004016/0.349, allocations: 201.8 kB / 415.4 MB, free: 10.43 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.019e-05/0.349, allocations: 8 kB / 415.4 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.3491, allocations: 4 kB / 415.4 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.364e-05/0.3491, allocations: 8.031 kB / 415.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001625/0.3493, allocations: 47.92 kB / 415.5 MB, free: 10.37 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.254e-05/0.3493, allocations: 7.984 kB / 415.5 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001329/0.3494, allocations: 15.89 kB / 415.5 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.688e-05/0.3494, allocations: 12 kB / 415.5 MB, free: 10.33 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.0001356/0.3496, allocations: 137.7 kB / 415.7 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001608/0.3498, allocations: 93.94 kB / 415.8 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.003e-05/0.3498, allocations: 12.72 kB / 415.8 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.3499, allocations: 8.094 kB / 415.8 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.3499, allocations: 3.938 kB / 415.8 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.3499, allocations: 0 / 415.8 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003097/0.3502, allocations: 209.5 kB / 416 MB, free: 9.805 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.3502, allocations: 0 / 416 MB, free: 9.805 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001855/0.3504, allocations: 43.91 kB / 416 MB, free: 9.762 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.3504, allocations: 0 / 416 MB, free: 9.762 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.23e-05/0.3504, allocations: 4 kB / 416 MB, free: 9.758 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.3504, allocations: 4 kB / 416 MB, free: 9.754 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.3504, allocations: 0 / 416 MB, free: 9.754 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005953/0.351, allocations: 383.4 kB / 416.4 MB, free: 9.359 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.737e-05/0.3511, allocations: 92.98 kB / 416.5 MB, free: 9.25 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.031e-05/0.3511, allocations: 0 / 416.5 MB, free: 9.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001369/0.3513, allocations: 11.98 kB / 416.5 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.631e-05/0.3513, allocations: 7.938 kB / 416.5 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.217e-06/0.3514, allocations: 4 kB / 416.5 MB, free: 9.227 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.897e-05/0.3514, allocations: 106.9 kB / 416.6 MB, free: 9.125 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3514, allocations: 0 / 416.6 MB, free: 9.125 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003276/0.3518, allocations: 24 kB / 416.7 MB, free: 9.102 MB / 334.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.0009193/0.3527, allocations: 0.9194 MB / 417.6 MB, free: 8.152 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000359/0.3531, allocations: 119.8 kB / 417.7 MB, free: 8.035 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.3531, allocations: 0 / 417.7 MB, free: 8.035 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001126/0.3532, allocations: 36.84 kB / 417.7 MB, free: 8 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005352/0.3538, allocations: 54.17 kB / 417.8 MB, free: 7.949 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002772/0.3565, allocations: 2.061 MB / 419.8 MB, free: 5.711 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004044/0.357, allocations: 0.7122 MB / 420.6 MB, free: 4.973 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.571e-05/0.357, allocations: 13.08 kB / 420.6 MB, free: 4.961 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.324e-05/0.3571, allocations: 39.42 kB / 420.6 MB, free: 4.922 MB / 334.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3571, allocations: 0 / 420.6 MB, free: 4.922 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02853/0.3857, allocations: 2.792 MB / 423.4 MB, free: 2.281 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.682/9.068, allocations: 11.86 kB / 423.4 MB, free: 2.27 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches