Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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.00151/0.00151, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.001555/0.001555, allocations: 209.3 kB / 23.74 MB, free: 4.672 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.55/1.55, allocations: 230.6 MB / 257.5 MB, free: 7.98 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.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001604/0.001604, allocations: 43.92 kB / 377.8 MB, free: 3.125 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3811/0.3827, allocations: 53.37 MB / 431.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004211/0.3869, allocations: 2.426 MB / 433.6 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001842/0.3887, allocations: 0.8767 MB / 434.4 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002394/0.389, allocations: 11.88 kB / 434.4 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003152/0.3893, allocations: 59.55 kB / 434.5 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000251/0.3895, allocations: 71.48 kB / 434.6 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006293/0.3902, allocations: 195.5 kB / 434.8 MB, free: 3.184 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005208/0.3907, allocations: 395.5 kB / 435.1 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002029/0.3909, allocations: 75.8 kB / 435.2 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003439/0.3912, allocations: 175.4 kB / 435.4 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002885/0.3915, allocations: 191.2 kB / 435.6 MB, free: 2.363 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.823e-05/0.3916, allocations: 36 kB / 435.6 MB, free: 2.328 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.158e-05/0.3916, allocations: 36 kB / 435.6 MB, free: 2.293 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001429/0.3918, allocations: 111.6 kB / 435.8 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001711/0.392, allocations: 159.1 kB / 435.9 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005033/0.3925, allocations: 382.6 kB / 436.3 MB, free: 1.656 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.3925, allocations: 0 / 436.3 MB, free: 1.656 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3925, allocations: 0 / 436.3 MB, free: 1.656 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.3925, allocations: 0 / 436.3 MB, free: 1.656 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001341/0.3938, allocations: 0.5987 MB / 436.9 MB, free: 1.023 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.3939, allocations: 12.03 kB / 436.9 MB, free: 1.012 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.284e-05/0.394, allocations: 70.73 kB / 437 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.694e-05/0.394, allocations: 48.7 kB / 437 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005341/0.3946, allocations: 253.3 kB / 437.3 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003312/0.3949, allocations: 347.9 kB / 437.6 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.906e-05/0.395, allocations: 32.38 kB / 437.6 MB, free: 180 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001225/0.3962, allocations: 0.566 MB / 438.2 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.358e-05/0.3962, allocations: 7.984 kB / 438.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.292e-05/0.3963, allocations: 8 kB / 438.2 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.183e-05/0.3963, allocations: 8 kB / 438.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001351/0.3976, allocations: 0.5074 MB / 438.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001757/0.3994, allocations: 0.9608 MB / 439.7 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001614/0.401, allocations: 490.4 kB / 440.2 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006069/0.4016, allocations: 231.4 kB / 440.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.664e-05/0.4017, allocations: 11.98 kB / 440.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.811e-05/0.4017, allocations: 50.48 kB / 440.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.635e-06/0.4017, allocations: 0 / 440.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03683/0.4385, allocations: 5.768 MB / 446.2 MB, free: 7.422 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001768/0.4387, allocations: 152.9 kB / 446.4 MB, free: 7.242 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003554/0.4391, allocations: 249.9 kB / 446.6 MB, free: 6.992 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.966e-05/0.4391, allocations: 37.7 kB / 446.7 MB, free: 6.949 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001341/0.4393, allocations: 157.7 kB / 446.8 MB, free: 6.789 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002386/0.4395, allocations: 202.3 kB / 447 MB, free: 6.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002909/0.4398, allocations: 115 kB / 447.1 MB, free: 6.469 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001803/0.44, allocations: 346.8 kB / 447.5 MB, free: 6.121 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001568/0.4416, allocations: 0.6149 MB / 448.1 MB, free: 5.508 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001755/0.4433, allocations: 0.7963 MB / 448.9 MB, free: 4.637 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003089/0.4464, allocations: 1.255 MB / 450.1 MB, free: 3.301 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.003e-05/0.4464, allocations: 4 kB / 450.1 MB, free: 3.297 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003626/0.45, allocations: 1.402 MB / 451.5 MB, free: 1.891 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.88e-05/0.4501, allocations: 8 kB / 451.5 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.843e-05/0.4501, allocations: 4 kB / 451.5 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.842e-05/0.4501, allocations: 8 kB / 451.5 MB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001361/0.4515, allocations: 207.7 kB / 451.8 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.248e-05/0.4515, allocations: 19.95 kB / 451.8 MB, free: 1.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009599/0.4525, allocations: 95.84 kB / 451.9 MB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.872e-05/0.4525, allocations: 27.98 kB / 451.9 MB, free: 1.527 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * 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.0003721/0.4529, allocations: 185.6 kB / 452.1 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003666/0.4533, allocations: 173.2 kB / 452.2 MB, free: 1.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001987/0.4535, allocations: 71.61 kB / 452.3 MB, free: 1.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/0.4535, allocations: 11.94 kB / 452.3 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.011e-05/0.4535, allocations: 0 / 452.3 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.798e-06/0.4535, allocations: 7.984 kB / 452.3 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005075/0.4586, allocations: 2.147 MB / 454.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-05/0.4586, allocations: 15.98 kB / 454.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008041/0.4594, allocations: 180.5 kB / 454.7 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.786e-05/0.4594, allocations: 12 kB / 454.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.814e-05/0.4595, allocations: 24 kB / 454.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.19e-05/0.4595, allocations: 23.92 kB / 454.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.429e-05/0.4595, allocations: 19.88 kB / 454.7 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003458/0.463, allocations: 1.561 MB / 456.3 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003137/0.4633, allocations: 103.6 kB / 456.4 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.96e-05/0.4634, allocations: 24 kB / 456.4 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006053/0.464, allocations: 80.09 kB / 456.5 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002136/0.4642, allocations: 99.7 kB / 456.6 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.396e-05/0.4642, allocations: 35.94 kB / 456.6 MB, free: 12.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002252/0.4645, allocations: 185.2 kB / 456.8 MB, free: 12.25 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4645, allocations: 0 / 456.8 MB, free: 12.25 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007312/0.4652, allocations: 127.9 kB / 457 MB, free: 12.12 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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 Backend phase and start with SimCode phase: time 0.003776/0.469, allocations: 2.145 MB / 459.1 MB, free: 9.824 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00301/0.472, allocations: 1.026 MB / 460.1 MB, free: 8.793 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.213e-05/0.472, allocations: 4 kB / 460.1 MB, free: 8.789 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001126/0.4731, allocations: 330.5 kB / 460.4 MB, free: 8.469 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001327/0.4744, allocations: 147.5 kB / 460.6 MB, free: 8.324 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01933/0.4938, allocations: 6.903 MB / 467.5 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006852/0.4945, allocations: 0.8324 MB / 468.3 MB, free: 64 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007939/0.4953, allocations: 100.1 kB / 468.4 MB, free: 15.96 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005562/0.4958, allocations: 123.3 kB / 468.5 MB, free: 15.84 MB / 382.1 MB Notification: Performance of SimCode: time 1.763e-06/0.4958, allocations: 0 / 468.5 MB, free: 15.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06184/0.5576, allocations: 12.39 MB / 480.9 MB, free: 3.609 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.91/12.46, allocations: 2.578 kB / 480.9 MB, free: 3.609 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000499563 Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable load.phi in file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv. Warning: Get data of variable load.phi from file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv failed! Error: Could not read variable PI.x in file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv. Warning: Get data of variable PI.x from file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv. Warning: Get data of variable PI.y from file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_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.w,speed.flange.phi [Calling sys.exit(0), Time elapsed: 15.285197716999392]