Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.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.ClockedWith_AD_DA_Effects,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001553/0.001553, allocations: 121.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.00151/0.00151, allocations: 204.6 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.611/1.611, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001942/0.001943, allocations: 59.91 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2827/0.2846, allocations: 50.53 MB / 408.7 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.004541/0.2892, allocations: 2.703 MB / 411.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001837/0.2911, allocations: 0.9427 MB / 412.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002099/0.2913, allocations: 7.938 kB / 412.4 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002484/0.2916, allocations: 63.33 kB / 412.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002498/0.2919, allocations: 59.52 kB / 412.5 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007482/0.2926, allocations: 246.9 kB / 412.7 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004873/0.2931, allocations: 382.9 kB / 413.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003875/0.2935, allocations: 188.8 kB / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001996/0.2937, allocations: 139.3 kB / 413.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002139/0.2939, allocations: 143.2 kB / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.852e-05/0.294, allocations: 32 kB / 413.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001527/0.2942, allocations: 71.95 kB / 413.7 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00012/0.2943, allocations: 83.69 kB / 413.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001788/0.2945, allocations: 163.1 kB / 413.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005643/0.295, allocations: 417.1 kB / 414.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.2951, allocations: 4 kB / 414.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.357e-05/0.2951, allocations: 0 / 414.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.2951, allocations: 3.938 kB / 414.3 MB, free: 11.94 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001222/0.2963, allocations: 0.6466 MB / 415 MB, free: 11.25 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.938e-05/0.2964, allocations: 12.03 kB / 415 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.217e-05/0.2965, allocations: 66.72 kB / 415.1 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.363e-05/0.2966, allocations: 40.7 kB / 415.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005129/0.2971, allocations: 340.1 kB / 415.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.713e-05/0.2971, allocations: 20.94 kB / 415.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.914e-05/0.2972, allocations: 36.12 kB / 415.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001428/0.2986, allocations: 0.7287 MB / 416.2 MB, free: 9.93 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.334e-05/0.2986, allocations: 4 kB / 416.2 MB, free: 9.926 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.003e-05/0.2987, allocations: 15.94 kB / 416.2 MB, free: 9.91 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.2987, allocations: 11.94 kB / 416.2 MB, free: 9.898 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005587/0.2993, allocations: 215.8 kB / 416.5 MB, free: 9.688 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001002/0.3003, allocations: 0.7761 MB / 417.2 MB, free: 8.836 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001144/0.3014, allocations: 0.6147 MB / 417.8 MB, free: 8.145 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004785/0.3019, allocations: 263.3 kB / 418.1 MB, free: 7.875 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007146/0.3026, allocations: 0.5971 MB / 418.7 MB, free: 7.148 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.987e-05/0.3027, allocations: 46.5 kB / 418.7 MB, free: 7.094 MB / 334.1 MB Notification: Performance of pre-optimization done (n=52): time 1.973e-06/0.3027, allocations: 0 / 418.7 MB, free: 7.094 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.001264/0.304, allocations: 0.5245 MB / 419.3 MB, free: 6.562 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001751/0.3042, allocations: 215.8 kB / 419.5 MB, free: 6.309 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002758/0.3044, allocations: 250.8 kB / 419.7 MB, free: 6.059 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.858e-05/0.3045, allocations: 37.69 kB / 419.8 MB, free: 6.016 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001255/0.3046, allocations: 148.9 kB / 419.9 MB, free: 5.863 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.056e-05/0.3047, allocations: 55.77 kB / 420 MB, free: 5.809 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001064/0.3048, allocations: 82.25 kB / 420 MB, free: 5.723 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001794/0.305, allocations: 346.8 kB / 420.4 MB, free: 5.375 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001926/0.3052, allocations: 85.06 kB / 420.5 MB, free: 5.289 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004854/0.3057, allocations: 438.9 kB / 420.9 MB, free: 4.691 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006739/0.3064, allocations: 0.5242 MB / 421.4 MB, free: 4.004 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.883e-06/0.3064, allocations: 4 kB / 421.4 MB, free: 4 MB / 334.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.000822/0.3072, allocations: 0.4899 MB / 421.9 MB, free: 3.504 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/0.3072, allocations: 12 kB / 421.9 MB, free: 3.492 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.145e-05/0.3073, allocations: 12 kB / 421.9 MB, free: 3.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.161e-05/0.3073, allocations: 20.03 kB / 422 MB, free: 3.461 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003369/0.3077, allocations: 119.8 kB / 422.1 MB, free: 3.344 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.246e-05/0.3077, allocations: 19.92 kB / 422.1 MB, free: 3.324 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002643/0.308, allocations: 55.72 kB / 422.1 MB, free: 3.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.599e-05/0.308, allocations: 32 kB / 422.2 MB, free: 3.238 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.0002195/0.3082, allocations: 193.5 kB / 422.4 MB, free: 3.039 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006692/0.3089, allocations: 342.2 kB / 422.7 MB, free: 2.699 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000716/0.3096, allocations: 360.7 kB / 423.1 MB, free: 2.34 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.648e-06/0.3096, allocations: 8 kB / 423.1 MB, free: 2.332 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.3097, allocations: 0 / 423.1 MB, free: 2.332 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.3097, allocations: 3.984 kB / 423.1 MB, free: 2.328 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004391/0.3101, allocations: 349.1 kB / 423.4 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.3101, allocations: 0 / 423.4 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003976/0.3105, allocations: 99.88 kB / 423.5 MB, free: 1.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.971e-06/0.3105, allocations: 4 kB / 423.5 MB, free: 1.836 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.909e-05/0.3106, allocations: 11.98 kB / 423.5 MB, free: 1.824 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.3106, allocations: 3.938 kB / 423.5 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.3106, allocations: 7.938 kB / 423.5 MB, free: 1.812 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001345/0.3119, allocations: 0.7751 MB / 424.3 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.848e-05/0.3121, allocations: 120.8 kB / 424.4 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.172e-05/0.3121, allocations: 16 kB / 424.4 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002644/0.3124, allocations: 31.95 kB / 424.5 MB, free: 0.832 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.309e-05/0.3124, allocations: 7.984 kB / 424.5 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.978e-05/0.3125, allocations: 16 kB / 424.5 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001828/0.3127, allocations: 178 kB / 424.7 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3127, allocations: 0 / 424.7 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005367/0.3132, allocations: 79.89 kB / 424.7 MB, free: 0.5586 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.001813/0.315, allocations: 1.344 MB / 426.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007973/0.3158, allocations: 361.3 kB / 426.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3159, allocations: 0 / 426.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.837e-05/0.316, allocations: 24.3 kB / 426.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001071/0.317, allocations: 314.7 kB / 426.8 MB, free: 14.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00514/0.3222, allocations: 3.833 MB / 430.6 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004756/0.3227, allocations: 0.812 MB / 431.4 MB, free: 9.402 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001218/0.3228, allocations: 39.27 kB / 431.5 MB, free: 9.359 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001702/0.323, allocations: 111.4 kB / 431.6 MB, free: 9.25 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.323, allocations: 0 / 431.6 MB, free: 9.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0374/0.3604, allocations: 8.048 MB / 439.6 MB, free: 1.375 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.829/9.189, allocations: 9.344 kB / 439.6 MB, free: 1.371 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWith_AD_DA_Effects/ClockedWith_AD_DA_Effects.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv. Warning: Get data of variable PI.x from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_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