Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001862/0.001862, allocations: 124.5 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001843/0.001843, allocations: 207.2 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.549/1.549, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,fileNamePrefix="Modelica_4_1_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_1_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.001552/0.001552, allocations: 47.94 kB / 373 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1265, allocations: 53.33 MB / 426.3 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.005438/0.1319, allocations: 2.714 MB / 429 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002601/0.1346, allocations: 0.9505 MB / 430 MB, free: 1.137 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004668/0.135, allocations: 11.94 kB / 430 MB, free: 1.125 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003385/0.1354, allocations: 59.33 kB / 430 MB, free: 1.066 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000298/0.1357, allocations: 75.39 kB / 430.1 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008954/0.1365, allocations: 238.4 kB / 430.3 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005121/0.1371, allocations: 378.9 kB / 430.7 MB, free: 400 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003146/0.1374, allocations: 136.8 kB / 430.8 MB, free: 260 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002178/0.1376, allocations: 139.4 kB / 431 MB, free: 120 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2434/0.381, allocations: 149.8 kB / 431.1 MB, free: 7.867 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001483/0.3812, allocations: 28.25 kB / 431.1 MB, free: 7.867 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002545/0.3814, allocations: 72.42 kB / 431.2 MB, free: 7.867 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001454/0.3816, allocations: 82.36 kB / 431.3 MB, free: 7.867 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002244/0.3818, allocations: 164.3 kB / 431.5 MB, free: 7.855 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009001/0.3827, allocations: 414.6 kB / 431.9 MB, free: 7.793 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.3827, allocations: 0 / 431.9 MB, free: 7.793 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.3827, allocations: 0 / 431.9 MB, free: 7.793 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.979e-05/0.3827, allocations: 4.375 kB / 431.9 MB, free: 7.793 MB / 350.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.001373/0.3841, allocations: 0.6475 MB / 432.5 MB, free: 7.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.793e-05/0.3842, allocations: 12.66 kB / 432.5 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.004e-05/0.3842, allocations: 69.83 kB / 432.6 MB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.088e-05/0.3843, allocations: 39.45 kB / 432.6 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004345/0.3848, allocations: 340.1 kB / 433 MB, free: 7.023 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.564e-05/0.3848, allocations: 21.12 kB / 433 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.53e-05/0.3849, allocations: 29.09 kB / 433 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001296/0.3862, allocations: 0.7384 MB / 433.7 MB, free: 6.855 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.876e-05/0.3862, allocations: 1.188 kB / 433.8 MB, free: 6.855 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.907e-05/0.3862, allocations: 11.56 kB / 433.8 MB, free: 6.855 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.117e-05/0.3862, allocations: 9.359 kB / 433.8 MB, free: 6.855 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005363/0.3867, allocations: 218 kB / 434 MB, free: 6.855 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007666/0.3875, allocations: 0.7682 MB / 434.8 MB, free: 6.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001056/0.3886, allocations: 0.5997 MB / 435.4 MB, free: 6.023 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004502/0.389, allocations: 238.9 kB / 435.6 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006024/0.3896, allocations: 0.5986 MB / 436.2 MB, free: 5.324 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.66e-05/0.3896, allocations: 46.3 kB / 436.2 MB, free: 5.285 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 2.635e-06/0.3897, allocations: 1.062 kB / 436.2 MB, free: 5.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.001338/0.391, allocations: 0.5263 MB / 436.8 MB, free: 5.219 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001068/0.3911, allocations: 210.4 kB / 437 MB, free: 5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002954/0.3914, allocations: 252.8 kB / 437.2 MB, free: 4.895 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.739e-05/0.3914, allocations: 32.94 kB / 437.2 MB, free: 4.863 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.031e-05/0.3915, allocations: 155.4 kB / 437.4 MB, free: 4.762 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.881e-05/0.3916, allocations: 49.7 kB / 437.4 MB, free: 4.742 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.553e-05/0.3917, allocations: 84.58 kB / 437.5 MB, free: 4.727 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.277e-05/0.3917, allocations: 346.6 kB / 437.9 MB, free: 4.414 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001951/0.3919, allocations: 85.2 kB / 437.9 MB, free: 4.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003572/0.3923, allocations: 432.7 kB / 438.4 MB, free: 3.961 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004993/0.3928, allocations: 0.5266 MB / 438.9 MB, free: 3.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.887e-06/0.3928, allocations: 5.75 kB / 438.9 MB, free: 3.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008423/0.3936, allocations: 0.4886 MB / 439.4 MB, free: 3.457 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/0.3937, allocations: 9.438 kB / 439.4 MB, free: 3.457 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.864e-05/0.3937, allocations: 13.11 kB / 439.4 MB, free: 3.457 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.94e-05/0.3937, allocations: 14.53 kB / 439.4 MB, free: 3.457 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003416/0.394, allocations: 124.1 kB / 439.5 MB, free: 3.457 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.644e-05/0.3941, allocations: 29.56 kB / 439.6 MB, free: 3.453 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002755/0.3943, allocations: 55.08 kB / 439.6 MB, free: 3.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.074e-05/0.3944, allocations: 30.97 kB / 439.7 MB, free: 3.43 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.000198/0.3946, allocations: 186.2 kB / 439.8 MB, free: 3.309 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006465/0.3952, allocations: 348.2 kB / 440.2 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007112/0.3959, allocations: 358.8 kB / 440.5 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.217e-06/0.3959, allocations: 7.938 kB / 440.5 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.396, allocations: 2.094 kB / 440.5 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.637e-06/0.396, allocations: 3.484 kB / 440.5 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004158/0.3964, allocations: 335.9 kB / 440.9 MB, free: 2.875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.869e-06/0.3964, allocations: 5.672 kB / 440.9 MB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004084/0.3968, allocations: 107.5 kB / 441 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.999e-06/0.3968, allocations: 3.406 kB / 441 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.729e-05/0.3968, allocations: 12.38 kB / 441 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/0.3968, allocations: 5.859 kB / 441 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.3968, allocations: 1.641 kB / 441 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001267/0.3981, allocations: 0.7746 MB / 441.8 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.781e-05/0.3982, allocations: 122.9 kB / 441.9 MB, free: 2.309 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.385e-05/0.3982, allocations: 14.83 kB / 441.9 MB, free: 2.301 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002563/0.3985, allocations: 31.25 kB / 441.9 MB, free: 2.289 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.194e-05/0.3985, allocations: 5.562 kB / 442 MB, free: 2.289 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.489e-05/0.3986, allocations: 15.2 kB / 442 MB, free: 2.285 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001757/0.3987, allocations: 184.2 kB / 442.1 MB, free: 2.176 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3987, allocations: 0 / 442.1 MB, free: 2.176 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006098/0.3994, allocations: 78.06 kB / 442.2 MB, free: 2.156 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.001672/0.401, allocations: 1.353 MB / 443.6 MB, free: 1.191 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008278/0.4019, allocations: 351.4 kB / 443.9 MB, free: 1.125 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.4019, allocations: 1.094 kB / 443.9 MB, free: 1.125 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001066/0.402, allocations: 27.03 kB / 443.9 MB, free: 1.121 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001111/0.4031, allocations: 302.6 kB / 444.2 MB, free: 1.004 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005461/0.4085, allocations: 3.824 MB / 448.1 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005377/0.4091, allocations: 0.8124 MB / 448.9 MB, free: 13.33 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001877/0.4093, allocations: 40.19 kB / 448.9 MB, free: 13.32 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002285/0.4095, allocations: 111.4 kB / 449 MB, free: 13.25 MB / 366.1 MB Notification: Performance of SimCode: time 1.172e-06/0.4095, allocations: 0.75 kB / 449 MB, free: 13.25 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04069/0.4502, allocations: 8.103 MB / 457.1 MB, free: 11.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.955/9.405, allocations: 19.88 kB / 457.1 MB, free: 11.3 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv. Warning: Get data of variable PI.x from file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv. Warning: Get data of variable PI.y from file Modelica_4.1.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: 12.135522284006584]