Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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.00173/0.00173, allocations: 118.9 kB / 17.79 MB, free: 5.285 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.001968/0.001968, allocations: 214.6 kB / 20.75 MB, free: 2.328 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.421/1.421, allocations: 230.4 MB / 254 MB, free: 15.04 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.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001843/0.001843, allocations: 63.91 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1203, allocations: 53.38 MB / 426.3 MB, free: 4.738 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.006309/0.1266, allocations: 2.404 MB / 428.7 MB, free: 2.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00272/0.1293, allocations: 0.8728 MB / 429.6 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000208/0.1295, allocations: 7.938 kB / 429.6 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000397/0.1299, allocations: 63.44 kB / 429.7 MB, free: 1.371 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003662/0.1303, allocations: 67.48 kB / 429.8 MB, free: 1.305 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001032/0.1313, allocations: 199.6 kB / 429.9 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007166/0.1321, allocations: 391.5 kB / 430.3 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002663/0.1323, allocations: 71.52 kB / 430.4 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004419/0.1328, allocations: 179.4 kB / 430.6 MB, free: 488 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004009/0.1332, allocations: 183.2 kB / 430.8 MB, free: 304 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.651e-05/0.1333, allocations: 36 kB / 430.8 MB, free: 268 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.393e-05/0.1333, allocations: 32 kB / 430.8 MB, free: 236 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002103/0.1335, allocations: 119.6 kB / 430.9 MB, free: 116 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2057/0.3393, allocations: 156.1 kB / 431.1 MB, free: 8.043 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005939/0.3398, allocations: 368.6 kB / 431.4 MB, free: 8.027 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.3399, allocations: 3.75 kB / 431.5 MB, free: 8.027 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.3399, allocations: 0 / 431.5 MB, free: 8.027 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.273e-06/0.3399, allocations: 4.062 kB / 431.5 MB, free: 8.027 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001141/0.341, allocations: 0.6787 MB / 432.1 MB, free: 7.562 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.341, allocations: 9.906 kB / 432.1 MB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.558e-05/0.3411, allocations: 75.45 kB / 432.2 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.141e-05/0.3412, allocations: 47.73 kB / 432.3 MB, free: 7.504 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000374/0.3416, allocations: 306.6 kB / 432.6 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001769/0.3417, allocations: 140.9 kB / 432.7 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.887e-05/0.3418, allocations: 31.09 kB / 432.7 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001098/0.3429, allocations: 0.5712 MB / 433.3 MB, free: 7.082 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.3429, allocations: 2.344 kB / 433.3 MB, free: 7.082 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.295e-05/0.343, allocations: 12.91 kB / 433.3 MB, free: 7.082 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.716e-06/0.343, allocations: 6.75 kB / 433.3 MB, free: 7.082 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0013/0.3443, allocations: 0.505 MB / 433.8 MB, free: 7.082 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001361/0.3456, allocations: 1.029 MB / 434.9 MB, free: 6.523 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00163/0.3473, allocations: 482.6 kB / 435.3 MB, free: 6.426 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006168/0.3479, allocations: 232.1 kB / 435.6 MB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.096e-05/0.3479, allocations: 11.77 kB / 435.6 MB, free: 6.391 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.137e-05/0.3479, allocations: 43.25 kB / 435.6 MB, free: 6.352 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.024e-06/0.3479, allocations: 0 / 435.6 MB, free: 6.352 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03986/0.3878, allocations: 5.767 MB / 441.4 MB, free: 5.883 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.724e-05/0.3879, allocations: 149.4 kB / 441.5 MB, free: 5.723 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003069/0.3882, allocations: 260.8 kB / 441.8 MB, free: 5.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.375e-05/0.3883, allocations: 36.14 kB / 441.8 MB, free: 5.531 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.823e-05/0.3883, allocations: 154.1 kB / 442 MB, free: 5.395 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001709/0.3885, allocations: 201.6 kB / 442.2 MB, free: 5.242 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002909/0.3888, allocations: 115.3 kB / 442.3 MB, free: 5.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.861e-05/0.3889, allocations: 345.7 kB / 442.6 MB, free: 4.852 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001625/0.3905, allocations: 0.6172 MB / 443.2 MB, free: 4.609 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001623/0.3921, allocations: 0.8011 MB / 444 MB, free: 4.141 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002949/0.3951, allocations: 1.246 MB / 445.3 MB, free: 3.488 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.3951, allocations: 2.156 kB / 445.3 MB, free: 3.488 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003557/0.3986, allocations: 1.403 MB / 446.7 MB, free: 2.934 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.513e-05/0.3987, allocations: 7.734 kB / 446.7 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/0.3987, allocations: 4.656 kB / 446.7 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.045e-05/0.3987, allocations: 10.2 kB / 446.7 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001345/0.4, allocations: 213.1 kB / 446.9 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.821e-05/0.4001, allocations: 10.78 kB / 446.9 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009545/0.401, allocations: 105.2 kB / 447 MB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.429e-05/0.4011, allocations: 28.47 kB / 447.1 MB, free: 2.902 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.0003305/0.4014, allocations: 195.7 kB / 447.2 MB, free: 2.746 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002873/0.4017, allocations: 165.5 kB / 447.4 MB, free: 2.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001911/0.4019, allocations: 72.95 kB / 447.5 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.073e-05/0.4019, allocations: 8.688 kB / 447.5 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.622e-05/0.4019, allocations: 2.25 kB / 447.5 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.4019, allocations: 3.891 kB / 447.5 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004718/0.4067, allocations: 2.186 MB / 449.7 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.496e-05/0.4067, allocations: 9.875 kB / 449.7 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007481/0.4074, allocations: 187.5 kB / 449.9 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-05/0.4074, allocations: 14.19 kB / 449.9 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.806e-05/0.4075, allocations: 23.62 kB / 449.9 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.581e-05/0.4075, allocations: 20.98 kB / 449.9 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.271e-05/0.4075, allocations: 18.25 kB / 449.9 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002903/0.4104, allocations: 1.565 MB / 451.5 MB, free: 316 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001893/0.4106, allocations: 183.9 kB / 451.7 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.256e-05/0.4107, allocations: 27.98 kB / 451.7 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005789/0.4113, allocations: 76.77 kB / 451.8 MB, free: 104 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001833/0.4114, allocations: 96.64 kB / 451.9 MB, free: 48 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.969e-05/0.4115, allocations: 36.11 kB / 451.9 MB, free: 40 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002119/0.4117, allocations: 185.6 kB / 452.1 MB, free: 15.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4117, allocations: 0 / 452.1 MB, free: 15.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006964/0.4124, allocations: 125.1 kB / 452.2 MB, free: 15.89 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.003964/0.4164, allocations: 2.133 MB / 454.4 MB, free: 14.22 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002908/0.4193, allocations: 1.022 MB / 455.4 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.222e-06/0.4193, allocations: 4.125 kB / 455.4 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001036/0.4203, allocations: 336.2 kB / 455.7 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009977/0.4213, allocations: 145.7 kB / 455.9 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01449/0.4358, allocations: 6.914 MB / 462.8 MB, free: 8.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005864/0.4364, allocations: 0.8313 MB / 463.6 MB, free: 7.582 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005494/0.4369, allocations: 100 kB / 463.7 MB, free: 7.531 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000418/0.4374, allocations: 122.5 kB / 463.8 MB, free: 7.441 MB / 366.1 MB Notification: Performance of SimCode: time 9.42e-07/0.4374, allocations: 0 / 463.8 MB, free: 7.441 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03954/0.4769, allocations: 11.71 MB / 475.5 MB, free: 13.82 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.089/8.566, allocations: 6.516 kB / 475.5 MB, free: 13.81 MB / 382.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv. Warning: Get data of variable load.phi from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv failed! Error: Could not read variable PI.x in file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv. Warning: Get data of variable PI.x from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_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: 11.137134072021581]