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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001475/0.001475, allocations: 116.4 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001566/0.001566, allocations: 214.3 kB / 23.75 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.531/1.531, allocations: 230.5 MB / 257.4 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001905/0.001905, allocations: 63.89 kB / 377.8 MB, free: 3.031 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2966/0.2985, allocations: 53.42 MB / 431.2 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.004486/0.303, allocations: 2.724 MB / 433.9 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00183/0.3048, allocations: 0.9543 MB / 434.9 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002596/0.3051, allocations: 15.88 kB / 434.9 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002459/0.3053, allocations: 67.38 kB / 434.9 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002807/0.3056, allocations: 71.39 kB / 435 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007814/0.3064, allocations: 238.9 kB / 435.2 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005046/0.3069, allocations: 378.9 kB / 435.6 MB, free: 2.258 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000319/0.3072, allocations: 137.4 kB / 435.7 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002204/0.3074, allocations: 147.4 kB / 435.9 MB, free: 1.977 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002109/0.3076, allocations: 151.2 kB / 436 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.575e-05/0.3077, allocations: 32 kB / 436.1 MB, free: 1.797 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001513/0.3078, allocations: 71.95 kB / 436.1 MB, free: 1.727 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001231/0.308, allocations: 75.75 kB / 436.2 MB, free: 1.652 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001807/0.3081, allocations: 167 kB / 436.4 MB, free: 1.488 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006009/0.3087, allocations: 426.5 kB / 436.8 MB, free: 1.074 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.3087, allocations: 4 kB / 436.8 MB, free: 1.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3087, allocations: 0 / 436.8 MB, free: 1.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.143e-05/0.3088, allocations: 0 / 436.8 MB, free: 1.07 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.00116/0.3099, allocations: 0.5753 MB / 437.4 MB, free: 472 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.31, allocations: 8.031 kB / 437.4 MB, free: 464 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.548e-05/0.31, allocations: 62.72 kB / 437.4 MB, free: 392 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.676e-05/0.3101, allocations: 44.64 kB / 437.5 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005291/0.3106, allocations: 274 kB / 437.7 MB, free: 48 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.925e-05/0.3107, allocations: 21.03 kB / 437.8 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.395e-05/0.3107, allocations: 36.17 kB / 437.8 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001427/0.3122, allocations: 0.733 MB / 438.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.941e-05/0.3122, allocations: 0 / 438.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.117e-05/0.3122, allocations: 12 kB / 438.5 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.463e-05/0.3122, allocations: 11.98 kB / 438.6 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005695/0.3128, allocations: 223.8 kB / 438.8 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009783/0.3138, allocations: 0.7149 MB / 439.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001073/0.3149, allocations: 455.8 kB / 439.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000506/0.3154, allocations: 248.5 kB / 440.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004668/0.3158, allocations: 75.7 kB / 440.3 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.924e-05/0.3159, allocations: 46.5 kB / 440.3 MB, free: 13.35 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 2.634e-06/0.3159, allocations: 4 kB / 440.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.001384/0.3173, allocations: 0.5138 MB / 440.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002529/0.3175, allocations: 220 kB / 441 MB, free: 12.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003173/0.3178, allocations: 249.9 kB / 441.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.728e-05/0.3179, allocations: 29.7 kB / 441.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001468/0.318, allocations: 152.9 kB / 441.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.379e-05/0.3181, allocations: 51.72 kB / 441.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001251/0.3182, allocations: 82.19 kB / 441.6 MB, free: 11.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001966/0.3184, allocations: 346.8 kB / 441.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001986/0.3186, allocations: 88.94 kB / 442 MB, free: 11.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005108/0.3191, allocations: 426.1 kB / 442.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007093/0.3198, allocations: 0.5281 MB / 443 MB, free: 10.28 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.193e-06/0.3198, allocations: 4 kB / 443 MB, free: 10.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008587/0.3207, allocations: 0.4938 MB / 443.5 MB, free: 9.773 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.47e-05/0.3207, allocations: 12 kB / 443.5 MB, free: 9.762 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.659e-05/0.3207, allocations: 15.94 kB / 443.5 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.314e-05/0.3208, allocations: 16.42 kB / 443.5 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000333/0.3211, allocations: 119.8 kB / 443.6 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.356e-05/0.3211, allocations: 23.86 kB / 443.6 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002765/0.3214, allocations: 55.72 kB / 443.7 MB, free: 9.535 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.894e-05/0.3214, allocations: 28 kB / 443.7 MB, free: 9.508 MB / 350.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.0002419/0.3217, allocations: 196.7 kB / 443.9 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006817/0.3224, allocations: 345 kB / 444.2 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007361/0.3231, allocations: 360.7 kB / 444.6 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.027e-05/0.3231, allocations: 15.94 kB / 444.6 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.3231, allocations: 0 / 444.6 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.749e-06/0.3231, allocations: 3.984 kB / 444.6 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004507/0.3236, allocations: 312.2 kB / 444.9 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.674e-06/0.3236, allocations: 0 / 444.9 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003987/0.324, allocations: 99.88 kB / 445 MB, free: 8.137 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.58e-05/0.324, allocations: 4 kB / 445 MB, free: 8.133 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.09e-05/0.324, allocations: 11.98 kB / 445 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.324, allocations: 0 / 445 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.324, allocations: 4 kB / 445 MB, free: 8.117 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00134/0.3254, allocations: 0.7863 MB / 445.8 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.674e-05/0.3254, allocations: 39.73 kB / 445.9 MB, free: 7.266 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.71e-05/0.3255, allocations: 15.98 kB / 445.9 MB, free: 7.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002468/0.3257, allocations: 27.98 kB / 445.9 MB, free: 7.223 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.316e-05/0.3258, allocations: 7.984 kB / 445.9 MB, free: 7.215 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.964e-05/0.3258, allocations: 12 kB / 445.9 MB, free: 7.203 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002051/0.326, allocations: 185.3 kB / 446.1 MB, free: 7.023 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.326, allocations: 4 kB / 446.1 MB, free: 7.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005684/0.3266, allocations: 79.89 kB / 446.2 MB, free: 6.941 MB / 350.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.001808/0.3284, allocations: 1.34 MB / 447.5 MB, free: 5.566 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008031/0.3292, allocations: 353.6 kB / 447.9 MB, free: 5.227 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.3292, allocations: 4.062 kB / 447.9 MB, free: 5.223 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001027/0.3293, allocations: 31.91 kB / 447.9 MB, free: 5.191 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001094/0.3304, allocations: 293.5 kB / 448.2 MB, free: 4.906 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005419/0.3358, allocations: 3.826 MB / 452 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004943/0.3363, allocations: 0.8081 MB / 452.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001439/0.3365, allocations: 43.25 kB / 452.9 MB, free: 15.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001934/0.3367, allocations: 111.4 kB / 453 MB, free: 15.66 MB / 366.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3367, allocations: 0 / 453 MB, free: 15.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04152/0.3782, allocations: 8.553 MB / 461.5 MB, free: 7.254 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.1/12.48, allocations: 14.98 kB / 461.6 MB, free: 7.242 MB / 366.1 MB " [Timeout remaining time 647] (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.0009802 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "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! " [Timeout remaining time 660] "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:time,load.phi,load.w [Calling sys.exit(0), Time elapsed: 15.279944548998174]