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.00168/0.00168, allocations: 106 kB / 16.92 MB, free: 5.777 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.001958/0.001958, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.408/1.408, allocations: 222.9 MB / 241.6 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009646/0.0009646, allocations: 47.92 kB / 300.7 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09713/0.09811, allocations: 49.45 MB / 350.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.004054/0.1022, allocations: 2.666 MB / 352.8 MB, free: 1.629 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001484/0.1037, allocations: 0.9076 MB / 353.7 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001785/0.1039, allocations: 11.94 kB / 353.7 MB, free: 0.707 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002198/0.1041, allocations: 63.33 kB / 353.8 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002404/0.1044, allocations: 63.5 kB / 353.9 MB, free: 0.582 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006412/0.105, allocations: 238.5 kB / 354.1 MB, free: 360 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003725/0.1054, allocations: 379 kB / 354.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003106/0.1057, allocations: 184.8 kB / 354.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001557/0.1059, allocations: 131.4 kB / 354.8 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001772/0.1061, allocations: 159.1 kB / 354.9 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.174e-05/0.1061, allocations: 32 kB / 355 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001229/0.1063, allocations: 67.97 kB / 355 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001123/0.1064, allocations: 83.69 kB / 355.1 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001524/0.1066, allocations: 159.1 kB / 355.3 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004571/0.107, allocations: 406.9 kB / 355.7 MB, free: 14.78 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.107, allocations: 0 / 355.7 MB, free: 14.78 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.107, allocations: 3.938 kB / 355.7 MB, free: 14.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.453e-06/0.1071, allocations: 0 / 355.7 MB, free: 14.77 MB / 302.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.001092/0.1081, allocations: 0.6313 MB / 356.3 MB, free: 14.09 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.1082, allocations: 12.03 kB / 356.3 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.053e-05/0.1083, allocations: 66.72 kB / 356.4 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.644e-05/0.1084, allocations: 40.47 kB / 356.4 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004005/0.1088, allocations: 323.8 kB / 356.7 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.874e-05/0.1088, allocations: 20.94 kB / 356.8 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.492e-05/0.1089, allocations: 36.12 kB / 356.8 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001356/0.1102, allocations: 0.752 MB / 357.5 MB, free: 12.78 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.787e-05/0.1103, allocations: 0 / 357.5 MB, free: 12.78 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.904e-05/0.1103, allocations: 16 kB / 357.6 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.362e-05/0.1103, allocations: 11.98 kB / 357.6 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005561/0.1109, allocations: 211.8 kB / 357.8 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008286/0.1117, allocations: 0.7758 MB / 358.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001059/0.1128, allocations: 0.6154 MB / 359.2 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004697/0.1133, allocations: 275.8 kB / 359.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007506/0.114, allocations: 0.5934 MB / 360 MB, free: 9.992 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.284e-05/0.1141, allocations: 42.56 kB / 360.1 MB, free: 9.941 MB / 302.1 MB Notification: Performance of pre-optimization done (n=52): time 2.184e-06/0.1141, allocations: 3.938 kB / 360.1 MB, free: 9.938 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.00124/0.1153, allocations: 0.5284 MB / 360.6 MB, free: 9.402 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001341/0.1155, allocations: 212 kB / 360.8 MB, free: 9.152 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002571/0.1158, allocations: 254.6 kB / 361.1 MB, free: 8.895 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.016e-05/0.1158, allocations: 33.7 kB / 361.1 MB, free: 8.855 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.901e-05/0.1159, allocations: 152.7 kB / 361.2 MB, free: 8.703 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.391e-05/0.116, allocations: 51.58 kB / 361.3 MB, free: 8.652 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.967e-05/0.1161, allocations: 78.27 kB / 361.4 MB, free: 8.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.1162, allocations: 346.8 kB / 361.7 MB, free: 8.223 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000182/0.1164, allocations: 85.06 kB / 361.8 MB, free: 8.141 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004033/0.1168, allocations: 435 kB / 362.2 MB, free: 7.547 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005857/0.1174, allocations: 0.5359 MB / 362.8 MB, free: 6.848 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.1174, allocations: 4 kB / 362.8 MB, free: 6.844 MB / 302.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007537/0.1182, allocations: 497.4 kB / 363.2 MB, free: 6.352 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.1182, allocations: 8.188 kB / 363.3 MB, free: 6.344 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/0.1182, allocations: 16 kB / 363.3 MB, free: 6.328 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.812e-05/0.1182, allocations: 16 kB / 363.3 MB, free: 6.312 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003111/0.1186, allocations: 123.8 kB / 363.4 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.239e-05/0.1186, allocations: 19.92 kB / 363.4 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002519/0.1188, allocations: 59.55 kB / 363.5 MB, free: 6.113 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.478e-05/0.1189, allocations: 31.94 kB / 363.5 MB, free: 6.082 MB / 302.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.0002019/0.1191, allocations: 193.5 kB / 363.7 MB, free: 5.883 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006373/0.1197, allocations: 338.1 kB / 364 MB, free: 5.547 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006818/0.1204, allocations: 361.2 kB / 364.4 MB, free: 5.184 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.266e-06/0.1205, allocations: 11.94 kB / 364.4 MB, free: 5.172 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.1205, allocations: 3.984 kB / 364.4 MB, free: 5.168 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.1205, allocations: 4 kB / 364.4 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003811/0.1209, allocations: 341 kB / 364.7 MB, free: 4.781 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.694e-06/0.1209, allocations: 3.984 kB / 364.7 MB, free: 4.777 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003924/0.1213, allocations: 99.88 kB / 364.8 MB, free: 4.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.76e-06/0.1213, allocations: 4 kB / 364.8 MB, free: 4.676 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.543e-05/0.1213, allocations: 8 kB / 364.9 MB, free: 4.668 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.554e-06/0.1213, allocations: 0 / 364.9 MB, free: 4.668 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.105e-06/0.1213, allocations: 4 kB / 364.9 MB, free: 4.664 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001259/0.1226, allocations: 0.7747 MB / 365.6 MB, free: 3.871 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.484e-05/0.1227, allocations: 124.5 kB / 365.8 MB, free: 3.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.747e-05/0.1228, allocations: 12 kB / 365.8 MB, free: 3.719 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002499/0.123, allocations: 27.97 kB / 365.8 MB, free: 3.691 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.044e-05/0.1231, allocations: 4.094 kB / 365.8 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.007e-05/0.1231, allocations: 16 kB / 365.8 MB, free: 3.672 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001664/0.1233, allocations: 182 kB / 366 MB, free: 3.492 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1233, allocations: 0 / 366 MB, free: 3.492 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005086/0.1238, allocations: 76.06 kB / 366.1 MB, free: 3.418 MB / 302.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.001609/0.1254, allocations: 1.356 MB / 367.4 MB, free: 2.031 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008098/0.1263, allocations: 389.6 kB / 367.8 MB, free: 1.652 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1263, allocations: 0 / 367.8 MB, free: 1.652 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001002/0.1264, allocations: 31.98 kB / 367.8 MB, free: 1.621 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009891/0.1274, allocations: 314 kB / 368.1 MB, free: 1.309 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1966/0.324, allocations: 3.818 MB / 372 MB, free: 23.33 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002811/0.3243, allocations: 0.8153 MB / 372.8 MB, free: 22.63 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001467/0.3245, allocations: 37.89 kB / 372.8 MB, free: 22.63 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001771/0.3247, allocations: 110.8 kB / 372.9 MB, free: 22.62 MB / 302.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3247, allocations: 3.844 kB / 372.9 MB, free: 22.62 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02875/0.3534, allocations: 7.921 MB / 380.8 MB, free: 21.03 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.06/8.414, allocations: 8.922 kB / 380.8 MB, free: 21.02 MB / 302.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