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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001408/0.001408, allocations: 112 kB / 20.43 MB, free: 1.309 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001453/0.001453, allocations: 191.2 kB / 23.72 MB, free: 4.559 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.543/1.543, allocations: 225.6 MB / 252.5 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002247/0.002247, allocations: 47.92 kB / 370.4 MB, free: 9.891 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.361/0.3633, allocations: 52.19 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.004706/0.368, allocations: 2.726 MB / 425.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001995/0.37, allocations: 0.9271 MB / 426.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002618/0.3702, allocations: 15.88 kB / 426.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002543/0.3705, allocations: 55.39 kB / 426.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002859/0.3708, allocations: 67.44 kB / 426.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008398/0.3716, allocations: 235.4 kB / 426.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004894/0.3721, allocations: 374.9 kB / 427 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003226/0.3724, allocations: 141.3 kB / 427.1 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002009/0.3726, allocations: 143.4 kB / 427.3 MB, free: 9.938 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002268/0.3728, allocations: 155.1 kB / 427.4 MB, free: 9.785 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.165e-05/0.3729, allocations: 32 kB / 427.5 MB, free: 9.754 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001482/0.3731, allocations: 71.97 kB / 427.5 MB, free: 9.684 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001306/0.3732, allocations: 71.77 kB / 427.6 MB, free: 9.613 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001751/0.3734, allocations: 171 kB / 427.8 MB, free: 9.445 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006231/0.374, allocations: 418.5 kB / 428.2 MB, free: 9.039 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.374, allocations: 0 / 428.2 MB, free: 9.039 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.504e-06/0.374, allocations: 4 kB / 428.2 MB, free: 9.035 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.997e-06/0.374, allocations: 4 kB / 428.2 MB, free: 9.031 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.001317/0.3753, allocations: 0.5675 MB / 428.8 MB, free: 8.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.291e-05/0.3754, allocations: 12.03 kB / 428.8 MB, free: 8.418 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.308e-05/0.3755, allocations: 62.72 kB / 428.8 MB, free: 8.348 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001084/0.3756, allocations: 44.66 kB / 428.9 MB, free: 8.305 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000663/0.3762, allocations: 270 kB / 429.1 MB, free: 8.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.383e-05/0.3763, allocations: 21.03 kB / 429.2 MB, free: 8 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.778e-05/0.3763, allocations: 32.12 kB / 429.2 MB, free: 7.969 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001577/0.3779, allocations: 0.7449 MB / 429.9 MB, free: 7.191 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.974e-05/0.3779, allocations: 0 / 429.9 MB, free: 7.191 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.598e-05/0.378, allocations: 19.94 kB / 429.9 MB, free: 7.172 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.455e-05/0.378, allocations: 8 kB / 430 MB, free: 7.164 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005933/0.3786, allocations: 215.8 kB / 430.2 MB, free: 6.953 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001131/0.3797, allocations: 0.7111 MB / 430.9 MB, free: 6.18 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001196/0.3809, allocations: 460.4 kB / 431.3 MB, free: 5.691 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005286/0.3814, allocations: 251.7 kB / 431.6 MB, free: 5.434 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004388/0.3819, allocations: 67.92 kB / 431.6 MB, free: 5.367 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.403e-05/0.3819, allocations: 42.56 kB / 431.7 MB, free: 5.316 MB / 334.1 MB Notification: Performance of pre-optimization done (n=52): time 1.904e-06/0.3819, allocations: 0 / 431.7 MB, free: 5.316 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.001384/0.3833, allocations: 0.5249 MB / 432.2 MB, free: 4.785 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002555/0.3836, allocations: 223.6 kB / 432.4 MB, free: 4.523 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003363/0.3839, allocations: 249.9 kB / 432.7 MB, free: 4.273 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.858e-05/0.3839, allocations: 29.7 kB / 432.7 MB, free: 4.238 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001624/0.3841, allocations: 156.9 kB / 432.9 MB, free: 4.082 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.688e-05/0.3842, allocations: 55.77 kB / 432.9 MB, free: 4.027 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001263/0.3843, allocations: 82.19 kB / 433 MB, free: 3.941 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002251/0.3845, allocations: 350.8 kB / 433.3 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002148/0.3847, allocations: 84.94 kB / 433.4 MB, free: 3.504 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005753/0.3853, allocations: 434.1 kB / 433.8 MB, free: 2.914 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009479/0.3863, allocations: 0.5242 MB / 434.4 MB, free: 2.227 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.358e-06/0.3863, allocations: 4 kB / 434.4 MB, free: 2.223 MB / 334.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.000906/0.3872, allocations: 0.4936 MB / 434.9 MB, free: 1.723 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.635e-05/0.3872, allocations: 15.28 kB / 434.9 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.303e-05/0.3872, allocations: 12 kB / 434.9 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.641e-05/0.3873, allocations: 16 kB / 434.9 MB, free: 1.684 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003561/0.3876, allocations: 119.8 kB / 435 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.117e-05/0.3877, allocations: 19.92 kB / 435 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002939/0.388, allocations: 56.03 kB / 435.1 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.338e-05/0.388, allocations: 32 kB / 435.1 MB, free: 1.461 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.0002767/0.3883, allocations: 193.5 kB / 435.3 MB, free: 1.262 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006914/0.389, allocations: 342.2 kB / 435.6 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000772/0.3897, allocations: 364.6 kB / 436 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.346e-06/0.3897, allocations: 4 kB / 436 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.3898, allocations: 4 kB / 436 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.275e-06/0.3898, allocations: 3.984 kB / 436 MB, free: 0.543 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004622/0.3902, allocations: 312.2 kB / 436.3 MB, free: 200 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.3902, allocations: 3.938 kB / 436.3 MB, free: 196 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003871/0.3906, allocations: 103.8 kB / 436.4 MB, free: 92 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.013e-06/0.3906, allocations: 4 kB / 436.4 MB, free: 88 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.167e-05/0.3907, allocations: 15.92 kB / 436.4 MB, free: 72 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.3907, allocations: 4 kB / 436.4 MB, free: 68 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.3907, allocations: 4 kB / 436.4 MB, free: 64 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001355/0.392, allocations: 0.7749 MB / 437.2 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.635e-05/0.3921, allocations: 39.73 kB / 437.3 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.591e-05/0.3921, allocations: 15.98 kB / 437.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002455/0.3924, allocations: 27.98 kB / 437.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.374e-05/0.3924, allocations: 3.984 kB / 437.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.839e-05/0.3925, allocations: 24.16 kB / 437.3 MB, free: 15.15 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002231/0.3927, allocations: 181.2 kB / 437.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3927, allocations: 0 / 437.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000532/0.3932, allocations: 75.94 kB / 437.6 MB, free: 14.9 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.00177/0.395, allocations: 1.343 MB / 438.9 MB, free: 13.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008243/0.3958, allocations: 353.5 kB / 439.3 MB, free: 13.19 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3958, allocations: 0 / 439.3 MB, free: 13.19 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001063/0.3959, allocations: 31.91 kB / 439.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001077/0.397, allocations: 286.9 kB / 439.6 MB, free: 12.87 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005523/0.4025, allocations: 3.843 MB / 443.4 MB, free: 8.598 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004768/0.403, allocations: 0.8081 MB / 444.2 MB, free: 7.762 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001309/0.4031, allocations: 35.28 kB / 444.3 MB, free: 7.723 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001903/0.4033, allocations: 115.3 kB / 444.4 MB, free: 7.609 MB / 350.1 MB Notification: Performance of SimCode: time 1.122e-06/0.4033, allocations: 4 kB / 444.4 MB, free: 7.605 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04108/0.4444, allocations: 8.553 MB / 452.9 MB, free: 15.22 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.35/12.8, allocations: 0 / 452.9 MB, free: 15.22 MB / 366.1 MB " [Timeout remaining time 647] (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.0009802 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) [Timeout 52.5] 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) [Timeout 660] "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! " [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.624175154000113]