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.001438/0.001438, allocations: 113.8 kB / 17.06 MB, free: 6.012 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.001204/0.001204, allocations: 191 kB / 18 MB, free: 5.098 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.406/1.406, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00106/0.00106, allocations: 51.91 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3404/0.3414, allocations: 49.43 MB / 400.2 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003808/0.3453, allocations: 1.997 MB / 402.2 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001091/0.3464, allocations: 0.5103 MB / 402.7 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001501/0.3466, allocations: 4 kB / 402.7 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001416/0.3468, allocations: 15.8 kB / 402.7 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.903e-05/0.3469, allocations: 23.73 kB / 402.8 MB, free: 6.246 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003572/0.3473, allocations: 63.8 kB / 402.8 MB, free: 6.184 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002157/0.3475, allocations: 119.6 kB / 402.9 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002048/0.3477, allocations: 57.42 kB / 403 MB, free: 6.008 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.339e-05/0.3478, allocations: 47.78 kB / 403 MB, free: 5.961 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001108/0.3479, allocations: 63.69 kB / 403.1 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.001e-05/0.3479, allocations: 8 kB / 403.1 MB, free: 5.891 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.978e-05/0.348, allocations: 12 kB / 403.1 MB, free: 5.879 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.532e-05/0.348, allocations: 23.92 kB / 403.1 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.887e-05/0.3481, allocations: 55.67 kB / 403.2 MB, free: 5.801 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002562/0.3484, allocations: 130.4 kB / 403.3 MB, free: 5.676 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.306e-06/0.3484, allocations: 8 kB / 403.3 MB, free: 5.668 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3484, allocations: 0 / 403.3 MB, free: 5.668 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.3484, allocations: 0 / 403.3 MB, free: 5.668 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.0006936/0.3491, allocations: 422.9 kB / 403.8 MB, free: 5.207 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.3491, allocations: 11.89 kB / 403.8 MB, free: 5.195 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.493e-05/0.3492, allocations: 46.73 kB / 403.8 MB, free: 5.141 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.037e-05/0.3492, allocations: 16.84 kB / 403.8 MB, free: 5.125 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003072/0.3496, allocations: 212.1 kB / 404 MB, free: 4.879 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.605e-05/0.3496, allocations: 12.38 kB / 404 MB, free: 4.867 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.388e-05/0.3496, allocations: 12.38 kB / 404.1 MB, free: 4.855 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005148/0.3501, allocations: 242.4 kB / 404.3 MB, free: 4.598 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.718e-05/0.3502, allocations: 7.953 kB / 404.3 MB, free: 4.59 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.543e-05/0.3502, allocations: 4 kB / 404.3 MB, free: 4.586 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.3502, allocations: 4 kB / 404.3 MB, free: 4.582 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002601/0.3505, allocations: 87.86 kB / 404.4 MB, free: 4.496 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006807/0.3512, allocations: 0.5882 MB / 405 MB, free: 3.836 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00028/0.3514, allocations: 147.9 kB / 405.1 MB, free: 3.664 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001679/0.3516, allocations: 74.58 kB / 405.2 MB, free: 3.582 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.568e-05/0.3517, allocations: 7.984 kB / 405.2 MB, free: 3.574 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.528e-05/0.3517, allocations: 34.5 kB / 405.2 MB, free: 3.531 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.473e-06/0.3517, allocations: 4 kB / 405.2 MB, free: 3.527 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005726/0.3523, allocations: 185.6 kB / 405.4 MB, free: 3.34 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.302e-05/0.3524, allocations: 110.9 kB / 405.5 MB, free: 3.207 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001289/0.3525, allocations: 130 kB / 405.7 MB, free: 3.066 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.129e-05/0.3525, allocations: 29.7 kB / 405.7 MB, free: 3.031 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.238e-05/0.3526, allocations: 116.2 kB / 405.8 MB, free: 2.914 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.96e-05/0.3527, allocations: 27.78 kB / 405.8 MB, free: 2.887 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.718e-05/0.3527, allocations: 33.72 kB / 405.9 MB, free: 2.848 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.3529, allocations: 318.8 kB / 406.2 MB, free: 2.527 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001168/0.353, allocations: 39.97 kB / 406.2 MB, free: 2.488 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001965/0.3532, allocations: 131.9 kB / 406.3 MB, free: 2.316 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003185/0.3536, allocations: 184.8 kB / 406.5 MB, free: 2.09 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.3536, allocations: 0 / 406.5 MB, free: 2.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003824/0.354, allocations: 185.3 kB / 406.7 MB, free: 1.902 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.354, allocations: 8 kB / 406.7 MB, free: 1.895 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.354, allocations: 3.938 kB / 406.7 MB, free: 1.891 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.145e-05/0.354, allocations: 8 kB / 406.7 MB, free: 1.883 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001829/0.3542, allocations: 43.91 kB / 406.8 MB, free: 1.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.958e-06/0.3543, allocations: 4.438 kB / 406.8 MB, free: 1.836 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001048/0.3544, allocations: 27.88 kB / 406.8 MB, free: 1.809 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.388e-05/0.3544, allocations: 8 kB / 406.8 MB, free: 1.801 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.0001203/0.3545, allocations: 129.7 kB / 406.9 MB, free: 1.664 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001429/0.3547, allocations: 89.53 kB / 407 MB, free: 1.57 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.551e-05/0.3547, allocations: 16.66 kB / 407 MB, free: 1.547 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.3547, allocations: 7.984 kB / 407 MB, free: 1.539 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.3547, allocations: 0 / 407 MB, free: 1.539 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.3547, allocations: 0 / 407 MB, free: 1.539 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002664/0.355, allocations: 201.6 kB / 407.2 MB, free: 1.293 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.355, allocations: 4 kB / 407.2 MB, free: 1.289 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001773/0.3552, allocations: 27.98 kB / 407.3 MB, free: 1.262 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.3552, allocations: 7.938 kB / 407.3 MB, free: 1.254 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/0.3552, allocations: 7.938 kB / 407.3 MB, free: 1.246 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.055e-06/0.3553, allocations: 0 / 407.3 MB, free: 1.246 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.3553, allocations: 7.938 kB / 407.3 MB, free: 1.238 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005262/0.3558, allocations: 371.5 kB / 407.7 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.755e-05/0.3559, allocations: 89.03 kB / 407.7 MB, free: 0.75 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.579e-05/0.3559, allocations: 15.94 kB / 407.8 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000131/0.356, allocations: 8.078 kB / 407.8 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.042e-05/0.3561, allocations: 7.875 kB / 407.8 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.293e-06/0.3561, allocations: 8 kB / 407.8 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.002e-05/0.3562, allocations: 99.33 kB / 407.9 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3562, allocations: 4 kB / 407.9 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000316/0.3565, allocations: 31.94 kB / 407.9 MB, free: 0.5781 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.0008479/0.3573, allocations: 0.9071 MB / 408.8 MB, free: 15.64 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003422/0.3577, allocations: 116.7 kB / 408.9 MB, free: 15.53 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.3577, allocations: 4 kB / 408.9 MB, free: 15.53 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001013/0.3578, allocations: 35.98 kB / 409 MB, free: 15.49 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005085/0.3583, allocations: 47.94 kB / 409 MB, free: 15.45 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002385/0.3607, allocations: 2.034 MB / 411.1 MB, free: 13.24 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003341/0.3611, allocations: 0.7045 MB / 411.8 MB, free: 12.51 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.035e-05/0.3611, allocations: 20.58 kB / 411.8 MB, free: 12.49 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.422e-05/0.3612, allocations: 35.42 kB / 411.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3612, allocations: 0 / 411.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02277/0.384, allocations: 2.74 MB / 414.6 MB, free: 9.891 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.201/8.585, allocations: 13.39 kB / 414.6 MB, free: 9.883 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