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.001342/0.001342, allocations: 122.8 kB / 17.79 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001594/0.001594, allocations: 197.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.419/1.419, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001458, allocations: 59.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3098/0.3113, allocations: 50.54 MB / 408.7 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.004535/0.3159, allocations: 2.688 MB / 411.4 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001901/0.3178, allocations: 0.9388 MB / 412.4 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003816/0.3182, allocations: 11.94 kB / 412.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000271/0.3186, allocations: 63.33 kB / 412.4 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003425/0.3189, allocations: 67.44 kB / 412.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008121/0.3197, allocations: 246.9 kB / 412.7 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005254/0.3203, allocations: 382.9 kB / 413.1 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003576/0.3206, allocations: 188.8 kB / 413.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002196/0.3209, allocations: 143.4 kB / 413.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002447/0.3211, allocations: 143.2 kB / 413.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.148e-05/0.3212, allocations: 32 kB / 413.6 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001428/0.3213, allocations: 67.95 kB / 413.7 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001212/0.3215, allocations: 87.69 kB / 413.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001872/0.3217, allocations: 159.1 kB / 413.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006632/0.3223, allocations: 425.1 kB / 414.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.526e-06/0.3224, allocations: 4 kB / 414.3 MB, free: 11.92 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.3224, allocations: 0 / 414.3 MB, free: 11.92 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.978e-05/0.3224, allocations: 3.938 kB / 414.3 MB, free: 11.92 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.001429/0.3238, allocations: 0.6505 MB / 415 MB, free: 11.22 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.116e-05/0.3239, allocations: 8.031 kB / 415 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.323e-05/0.324, allocations: 62.72 kB / 415.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001149/0.3241, allocations: 40.7 kB / 415.1 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005989/0.3247, allocations: 340.1 kB / 415.4 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.219e-05/0.3247, allocations: 20.94 kB / 415.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.008e-05/0.3248, allocations: 36.12 kB / 415.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001473/0.3263, allocations: 0.7287 MB / 416.2 MB, free: 9.91 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.3263, allocations: 7.938 kB / 416.2 MB, free: 9.902 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.849e-05/0.3264, allocations: 8 kB / 416.2 MB, free: 9.895 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.969e-06/0.3264, allocations: 8 kB / 416.2 MB, free: 9.887 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005584/0.3269, allocations: 223.8 kB / 416.5 MB, free: 9.668 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009092/0.3279, allocations: 0.7644 MB / 417.2 MB, free: 8.828 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001133/0.329, allocations: 0.6264 MB / 417.9 MB, free: 8.125 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004817/0.3295, allocations: 263.3 kB / 418.1 MB, free: 7.855 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007564/0.3303, allocations: 0.5932 MB / 418.7 MB, free: 7.133 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.373e-05/0.3303, allocations: 50.5 kB / 418.8 MB, free: 7.074 MB / 334.1 MB Notification: Performance of pre-optimization done (n=52): time 2.264e-06/0.3303, allocations: 0 / 418.8 MB, free: 7.074 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.001361/0.3317, allocations: 0.5205 MB / 419.3 MB, free: 6.547 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001772/0.3319, allocations: 215.8 kB / 419.5 MB, free: 6.293 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003859/0.3323, allocations: 246.6 kB / 419.7 MB, free: 6.047 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.748e-05/0.3323, allocations: 33.83 kB / 419.8 MB, free: 6.008 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.3325, allocations: 160.9 kB / 419.9 MB, free: 5.844 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.801e-05/0.3325, allocations: 51.77 kB / 420 MB, free: 5.793 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001096/0.3327, allocations: 82.25 kB / 420 MB, free: 5.707 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.3328, allocations: 346.8 kB / 420.4 MB, free: 5.359 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002478/0.333, allocations: 81.08 kB / 420.5 MB, free: 5.277 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004308/0.3335, allocations: 438.9 kB / 420.9 MB, free: 4.68 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006511/0.3341, allocations: 0.5242 MB / 421.4 MB, free: 3.992 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.666e-06/0.3342, allocations: 4 kB / 421.4 MB, free: 3.988 MB / 334.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008535/0.335, allocations: 0.493 MB / 421.9 MB, free: 3.488 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.588e-05/0.3351, allocations: 8 kB / 421.9 MB, free: 3.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.065e-05/0.3351, allocations: 16.89 kB / 421.9 MB, free: 3.465 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.911e-05/0.3351, allocations: 16 kB / 422 MB, free: 3.449 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003302/0.3355, allocations: 123.8 kB / 422.1 MB, free: 3.328 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.212e-05/0.3355, allocations: 23.92 kB / 422.1 MB, free: 3.305 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002933/0.3358, allocations: 51.72 kB / 422.1 MB, free: 3.254 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.311e-05/0.3358, allocations: 32 kB / 422.2 MB, free: 3.223 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.0002264/0.3361, allocations: 197.3 kB / 422.4 MB, free: 3.02 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006868/0.3368, allocations: 346.2 kB / 422.7 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007728/0.3375, allocations: 361.1 kB / 423.1 MB, free: 2.316 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.016e-05/0.3376, allocations: 8 kB / 423.1 MB, free: 2.309 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/0.3376, allocations: 0 / 423.1 MB, free: 2.309 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.3376, allocations: 0 / 423.1 MB, free: 2.309 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004608/0.3381, allocations: 349.1 kB / 423.4 MB, free: 1.918 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.254e-05/0.3381, allocations: 3.984 kB / 423.4 MB, free: 1.914 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004072/0.3385, allocations: 107.9 kB / 423.5 MB, free: 1.809 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.626e-06/0.3385, allocations: 4 kB / 423.5 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.622e-05/0.3385, allocations: 8 kB / 423.5 MB, free: 1.797 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.172e-06/0.3385, allocations: 7.984 kB / 423.5 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.3386, allocations: 3.938 kB / 423.5 MB, free: 1.785 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001327/0.3399, allocations: 0.7708 MB / 424.3 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001137/0.34, allocations: 124.8 kB / 424.4 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.002e-05/0.3401, allocations: 12.06 kB / 424.4 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003258/0.3404, allocations: 31.97 kB / 424.5 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.667e-05/0.3405, allocations: 4 kB / 424.5 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.478e-05/0.3405, allocations: 15.98 kB / 424.5 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001938/0.3407, allocations: 182 kB / 424.7 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3407, allocations: 0 / 424.7 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005876/0.3413, allocations: 79.89 kB / 424.8 MB, free: 0.5352 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.001945/0.3433, allocations: 1.344 MB / 426.1 MB, free: 15.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008593/0.3442, allocations: 361.6 kB / 426.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.3442, allocations: 0 / 426.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001069/0.3443, allocations: 27.98 kB / 426.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00116/0.3455, allocations: 302.4 kB / 426.8 MB, free: 14.49 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005136/0.3506, allocations: 3.834 MB / 430.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005053/0.3512, allocations: 0.8119 MB / 431.4 MB, free: 9.387 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001669/0.3514, allocations: 43.27 kB / 431.5 MB, free: 9.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002063/0.3516, allocations: 107.4 kB / 431.6 MB, free: 9.234 MB / 350.1 MB Notification: Performance of SimCode: time 1.663e-06/0.3516, allocations: 0 / 431.6 MB, free: 9.234 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02973/0.3813, allocations: 8.06 MB / 439.6 MB, free: 1.352 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.578/8.959, allocations: 8.219 kB / 439.6 MB, free: 1.348 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.0.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