Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.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.ClockedWith_AD_DA_Effects,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects",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.001603/0.001603, allocations: 107.8 kB / 17.06 MB, free: 5.828 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.001587/0.001587, allocations: 195.9 kB / 18 MB, free: 4.965 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.43/1.43, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00114/0.00114, allocations: 47.92 kB / 350.8 MB, free: 3.789 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3166/0.3177, allocations: 49.44 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.004388/0.3222, allocations: 2.671 MB / 402.9 MB, free: 6.145 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001808/0.324, allocations: 0.9192 MB / 403.8 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000264/0.3243, allocations: 7.938 kB / 403.8 MB, free: 5.215 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002642/0.3246, allocations: 71.33 kB / 403.9 MB, free: 5.145 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002597/0.3249, allocations: 55.52 kB / 403.9 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008439/0.3257, allocations: 250.8 kB / 404.2 MB, free: 4.848 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004166/0.3262, allocations: 371 kB / 404.6 MB, free: 4.484 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003332/0.3265, allocations: 188.8 kB / 404.7 MB, free: 4.297 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001709/0.3267, allocations: 143.4 kB / 404.9 MB, free: 4.156 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001891/0.3269, allocations: 151.2 kB / 405 MB, free: 4.008 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.906e-05/0.3269, allocations: 32 kB / 405.1 MB, free: 3.977 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001203/0.3271, allocations: 71.97 kB / 405.1 MB, free: 3.906 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001125/0.3272, allocations: 83.67 kB / 405.2 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001498/0.3273, allocations: 159.1 kB / 405.4 MB, free: 3.668 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005398/0.3279, allocations: 421.1 kB / 405.8 MB, free: 3.258 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.3279, allocations: 0 / 405.8 MB, free: 3.258 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3279, allocations: 7.938 kB / 405.8 MB, free: 3.25 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.313e-06/0.3279, allocations: 0 / 405.8 MB, free: 3.25 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001084/0.329, allocations: 0.6427 MB / 406.4 MB, free: 2.559 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.3291, allocations: 12.03 kB / 406.4 MB, free: 2.547 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.243e-05/0.3291, allocations: 66.72 kB / 406.5 MB, free: 2.473 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.949e-05/0.3292, allocations: 44.66 kB / 406.5 MB, free: 2.43 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000502/0.3297, allocations: 324.2 kB / 406.9 MB, free: 2.074 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.654e-05/0.3298, allocations: 20.94 kB / 406.9 MB, free: 2.055 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.732e-05/0.3298, allocations: 40.11 kB / 406.9 MB, free: 2.016 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001352/0.3312, allocations: 0.7327 MB / 407.7 MB, free: 1.246 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.3312, allocations: 7.922 kB / 407.7 MB, free: 1.238 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.981e-05/0.3313, allocations: 16 kB / 407.7 MB, free: 1.223 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.3313, allocations: 12 kB / 407.7 MB, free: 1.211 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006299/0.3319, allocations: 211.8 kB / 407.9 MB, free: 1.004 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000822/0.3327, allocations: 0.7684 MB / 408.7 MB, free: 164 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001101/0.3339, allocations: 0.6196 MB / 409.3 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004638/0.3343, allocations: 279.5 kB / 409.6 MB, free: 15.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006616/0.335, allocations: 0.5895 MB / 410.1 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.542e-05/0.335, allocations: 46.48 kB / 410.2 MB, free: 14.41 MB / 334.1 MB Notification: Performance of pre-optimization done (n=52): time 2.395e-06/0.3351, allocations: 4 kB / 410.2 MB, free: 14.4 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.001224/0.3363, allocations: 0.5128 MB / 410.7 MB, free: 13.88 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001694/0.3365, allocations: 219.6 kB / 410.9 MB, free: 13.62 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002718/0.3367, allocations: 250.6 kB / 411.2 MB, free: 13.37 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.097e-05/0.3368, allocations: 33.7 kB / 411.2 MB, free: 13.33 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001126/0.3369, allocations: 148.9 kB / 411.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.984e-05/0.337, allocations: 59.75 kB / 411.4 MB, free: 13.12 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001055/0.3371, allocations: 82.2 kB / 411.5 MB, free: 13.03 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.3372, allocations: 350.8 kB / 411.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002055/0.3374, allocations: 85.06 kB / 411.9 MB, free: 12.6 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004132/0.3379, allocations: 446.9 kB / 412.3 MB, free: 11.99 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006122/0.3385, allocations: 0.5203 MB / 412.9 MB, free: 11.31 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.833e-06/0.3385, allocations: 4 kB / 412.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007459/0.3392, allocations: 0.4897 MB / 413.4 MB, free: 10.81 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.324e-05/0.3393, allocations: 12 kB / 413.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.521e-05/0.3393, allocations: 12 kB / 413.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.699e-05/0.3393, allocations: 16 kB / 413.4 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000317/0.3397, allocations: 123.8 kB / 413.5 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.258e-05/0.3397, allocations: 19.92 kB / 413.5 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002579/0.34, allocations: 51.73 kB / 413.6 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.851e-05/0.34, allocations: 32.28 kB / 413.6 MB, free: 10.55 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 6 ($CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[1],sample1.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 4 (PI.x,sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 61 * 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.0002009/0.3402, allocations: 201.5 kB / 413.8 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006396/0.3409, allocations: 334.3 kB / 414.1 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007005/0.3416, allocations: 369.6 kB / 414.5 MB, free: 9.641 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.77e-05/0.3416, allocations: 11.98 kB / 414.5 MB, free: 9.629 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.3416, allocations: 0 / 414.5 MB, free: 9.629 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.3416, allocations: 0 / 414.5 MB, free: 9.629 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003834/0.342, allocations: 341.2 kB / 414.8 MB, free: 9.246 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.133e-06/0.342, allocations: 4 kB / 414.9 MB, free: 9.242 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003917/0.3424, allocations: 103.9 kB / 415 MB, free: 9.141 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.063e-06/0.3424, allocations: 4 kB / 415 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.498e-05/0.3425, allocations: 11.94 kB / 415 MB, free: 9.125 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/0.3425, allocations: 4 kB / 415 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/0.3425, allocations: 7.938 kB / 415 MB, free: 9.113 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001246/0.3437, allocations: 0.771 MB / 415.8 MB, free: 8.316 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000106/0.3439, allocations: 124.8 kB / 415.9 MB, free: 8.176 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.429e-05/0.3439, allocations: 12 kB / 415.9 MB, free: 8.164 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002541/0.3442, allocations: 27.97 kB / 415.9 MB, free: 8.137 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.292e-05/0.3442, allocations: 4 kB / 415.9 MB, free: 8.133 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.202e-05/0.3443, allocations: 16.06 kB / 415.9 MB, free: 8.117 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001763/0.3445, allocations: 186 kB / 416.1 MB, free: 7.938 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3445, allocations: 0 / 416.1 MB, free: 7.938 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005242/0.345, allocations: 75.94 kB / 416.2 MB, free: 7.863 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 4 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3],PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.001639/0.3466, allocations: 1.348 MB / 417.5 MB, free: 6.484 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007535/0.3474, allocations: 361.6 kB / 417.9 MB, free: 6.133 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3474, allocations: 0 / 417.9 MB, free: 6.133 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.967e-05/0.3475, allocations: 27.97 kB / 417.9 MB, free: 6.105 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001025/0.3486, allocations: 314.2 kB / 418.2 MB, free: 5.793 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00484/0.3534, allocations: 3.826 MB / 422.1 MB, free: 1.547 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003783/0.3538, allocations: 0.8081 MB / 422.9 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001209/0.3539, allocations: 35.28 kB / 422.9 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001671/0.3541, allocations: 115.4 kB / 423 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3541, allocations: 0 / 423 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02676/0.3809, allocations: 8.059 MB / 431.1 MB, free: 8.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.559/8.94, allocations: 11.12 kB / 431.1 MB, free: 8.672 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_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_ClockedWith_AD_DA_Effects.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWith_AD_DA_Effects/ClockedWith_AD_DA_Effects.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.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.ClockedWith_AD_DA_Effects_res.csv. Warning: Get data of variable PI.x from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_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