Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001656/0.001656, allocations: 114.1 kB / 17.06 MB, free: 6.078 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.001864/0.001864, allocations: 189.4 kB / 17.99 MB, free: 5.176 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.514/1.514, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 51.92 kB / 350.8 MB, free: 3.805 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3177/0.3191, allocations: 49.43 MB / 400.2 MB, free: 8.438 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.004472/0.3237, allocations: 2.002 MB / 402.2 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00105/0.3247, allocations: 0.5064 MB / 402.7 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001222/0.3249, allocations: 7.938 kB / 402.7 MB, free: 6.328 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001306/0.325, allocations: 15.8 kB / 402.7 MB, free: 6.312 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.194e-05/0.3251, allocations: 23.78 kB / 402.8 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000352/0.3255, allocations: 59.81 kB / 402.8 MB, free: 6.23 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002088/0.3257, allocations: 119.6 kB / 402.9 MB, free: 6.113 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002076/0.3259, allocations: 57.41 kB / 403 MB, free: 6.055 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.273e-05/0.326, allocations: 43.8 kB / 403 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001056/0.3261, allocations: 59.7 kB / 403.1 MB, free: 5.953 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.223e-05/0.3262, allocations: 8 kB / 403.1 MB, free: 5.945 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.367e-05/0.3262, allocations: 12 kB / 403.1 MB, free: 5.934 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.546e-05/0.3262, allocations: 27.91 kB / 403.1 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.661e-05/0.3263, allocations: 55.67 kB / 403.2 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002398/0.3266, allocations: 126.5 kB / 403.3 MB, free: 5.73 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3266, allocations: 0 / 403.3 MB, free: 5.73 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3266, allocations: 0 / 403.3 MB, free: 5.73 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.144e-05/0.3266, allocations: 4 kB / 403.3 MB, free: 5.727 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0007385/0.3274, allocations: 438.8 kB / 403.7 MB, free: 5.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/0.3274, allocations: 11.89 kB / 403.8 MB, free: 5.238 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.334e-05/0.3275, allocations: 38.75 kB / 403.8 MB, free: 5.191 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.917e-05/0.3275, allocations: 20.83 kB / 403.8 MB, free: 5.172 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003449/0.3279, allocations: 215.5 kB / 404 MB, free: 4.926 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.068e-05/0.3279, allocations: 12.36 kB / 404 MB, free: 4.914 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.719e-05/0.3279, allocations: 12.38 kB / 404.1 MB, free: 4.902 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005253/0.3285, allocations: 242.7 kB / 404.3 MB, free: 4.641 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.65e-05/0.3285, allocations: 3.953 kB / 404.3 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.808e-05/0.3285, allocations: 8 kB / 404.3 MB, free: 4.629 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.3285, allocations: 0 / 404.3 MB, free: 4.629 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002598/0.3288, allocations: 87.86 kB / 404.4 MB, free: 4.543 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007761/0.3296, allocations: 0.5805 MB / 405 MB, free: 3.887 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005361/0.3301, allocations: 155.8 kB / 405.1 MB, free: 3.707 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001812/0.3303, allocations: 74.62 kB / 405.2 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.635e-05/0.3304, allocations: 4 kB / 405.2 MB, free: 3.621 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.594e-05/0.3304, allocations: 34.56 kB / 405.2 MB, free: 3.578 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.393e-06/0.3304, allocations: 0 / 405.2 MB, free: 3.578 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.000573/0.331, allocations: 181.3 kB / 405.4 MB, free: 3.395 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000102/0.3311, allocations: 110.8 kB / 405.5 MB, free: 3.262 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001398/0.3313, allocations: 130 kB / 405.6 MB, free: 3.121 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.754e-05/0.3313, allocations: 33.7 kB / 405.7 MB, free: 3.082 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.3314, allocations: 120.2 kB / 405.8 MB, free: 2.961 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.532e-05/0.3314, allocations: 27.78 kB / 405.8 MB, free: 2.934 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.381e-05/0.3315, allocations: 37.7 kB / 405.9 MB, free: 2.891 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.3317, allocations: 318.8 kB / 406.2 MB, free: 2.57 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001228/0.3318, allocations: 36.34 kB / 406.2 MB, free: 2.535 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001971/0.332, allocations: 124.9 kB / 406.3 MB, free: 2.367 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000346/0.3324, allocations: 176.7 kB / 406.5 MB, free: 2.148 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.3324, allocations: 4 kB / 406.5 MB, free: 2.145 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003981/0.3328, allocations: 193.2 kB / 406.7 MB, free: 1.949 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.3328, allocations: 4 kB / 406.7 MB, free: 1.945 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/0.3328, allocations: 7.938 kB / 406.7 MB, free: 1.938 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.096e-05/0.3329, allocations: 7.938 kB / 406.7 MB, free: 1.93 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001816/0.3331, allocations: 40.42 kB / 406.7 MB, free: 1.891 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.522e-05/0.3331, allocations: 15.92 kB / 406.8 MB, free: 1.875 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000113/0.3332, allocations: 19.89 kB / 406.8 MB, free: 1.855 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.702e-05/0.3332, allocations: 8 kB / 406.8 MB, free: 1.848 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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.0001373/0.3334, allocations: 129.7 kB / 406.9 MB, free: 1.711 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001587/0.3335, allocations: 81.59 kB / 407 MB, free: 1.625 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.252e-05/0.3336, allocations: 24.88 kB / 407 MB, free: 1.598 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.3336, allocations: 4 kB / 407 MB, free: 1.594 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.3336, allocations: 7.938 kB / 407 MB, free: 1.586 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.3336, allocations: 7.984 kB / 407 MB, free: 1.578 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003253/0.334, allocations: 197.6 kB / 407.2 MB, free: 1.336 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.334, allocations: 0 / 407.2 MB, free: 1.336 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001692/0.3342, allocations: 31.98 kB / 407.3 MB, free: 1.305 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.3342, allocations: 0 / 407.3 MB, free: 1.305 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.497e-05/0.3342, allocations: 15.92 kB / 407.3 MB, free: 1.289 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.3342, allocations: 3.938 kB / 407.3 MB, free: 1.285 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3342, allocations: 0 / 407.3 MB, free: 1.285 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006188/0.3348, allocations: 375.5 kB / 407.7 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.345e-05/0.3349, allocations: 89.03 kB / 407.7 MB, free: 0.793 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.546e-05/0.335, allocations: 7.938 kB / 407.7 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001281/0.3351, allocations: 11.98 kB / 407.8 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.264e-05/0.3351, allocations: 0 / 407.8 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.324e-05/0.3352, allocations: 16.05 kB / 407.8 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.06e-05/0.3352, allocations: 98.5 kB / 407.9 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3352, allocations: 0 / 407.9 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003164/0.3356, allocations: 27.95 kB / 407.9 MB, free: 0.6367 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 (14): * Single equations (assignments): 14 * 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.0009555/0.3365, allocations: 0.9078 MB / 408.8 MB, free: 15.7 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003587/0.3369, allocations: 124.4 kB / 408.9 MB, free: 15.58 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.81e-06/0.3369, allocations: 8.188 kB / 408.9 MB, free: 15.57 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001044/0.337, allocations: 27.92 kB / 409 MB, free: 15.54 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005023/0.3375, allocations: 51.98 kB / 409 MB, free: 15.49 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002772/0.3403, allocations: 2.029 MB / 411 MB, free: 13.29 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004092/0.3408, allocations: 0.7162 MB / 411.8 MB, free: 12.55 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.62e-05/0.3408, allocations: 4.656 kB / 411.8 MB, free: 12.55 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.696e-05/0.3409, allocations: 39.42 kB / 411.8 MB, free: 12.51 MB / 334.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3409, allocations: 0 / 411.8 MB, free: 12.51 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02677/0.3677, allocations: 2.74 MB / 414.5 MB, free: 9.953 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.308/8.675, allocations: 10.88 kB / 414.6 MB, free: 9.945 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable PI.x in file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv. Warning: Get data of variable PI.x from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv failed! " Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:time,load.phi,load.w