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.001631/0.001631, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001451/0.001451, allocations: 209.2 kB / 23.73 MB, free: 4.523 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.449/1.449, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.001509/0.001509, allocations: 47.92 kB / 377.7 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2613/0.2628, allocations: 53.36 MB / 431.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004138/0.267, allocations: 2.304 MB / 433.4 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001762/0.2687, allocations: 0.8261 MB / 434.2 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000177/0.2689, allocations: 19.81 kB / 434.2 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002825/0.2692, allocations: 43.58 kB / 434.3 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002406/0.2694, allocations: 75.48 kB / 434.3 MB, free: 3.367 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005913/0.27, allocations: 199.6 kB / 434.5 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004825/0.2705, allocations: 391.5 kB / 434.9 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002008/0.2707, allocations: 77.55 kB / 435 MB, free: 2.715 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003257/0.271, allocations: 175.4 kB / 435.2 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002816/0.2713, allocations: 187.2 kB / 435.3 MB, free: 2.359 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.458e-05/0.2714, allocations: 39.98 kB / 435.4 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.596e-05/0.2714, allocations: 36 kB / 435.4 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001489/0.2716, allocations: 119.6 kB / 435.5 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001415/0.2717, allocations: 131.3 kB / 435.7 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004624/0.2722, allocations: 378.3 kB / 436 MB, free: 1.668 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.2722, allocations: 4 kB / 436 MB, free: 1.664 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.2722, allocations: 0 / 436 MB, free: 1.664 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.2722, allocations: 0 / 436 MB, free: 1.664 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.0013/0.2735, allocations: 0.6064 MB / 436.6 MB, free: 1.023 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.2735, allocations: 8.031 kB / 436.6 MB, free: 1.016 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.128e-05/0.2736, allocations: 66.73 kB / 436.7 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.278e-05/0.2737, allocations: 52.7 kB / 436.8 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004767/0.2742, allocations: 249.4 kB / 437 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003508/0.2745, allocations: 347.9 kB / 437.3 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.777e-05/0.2746, allocations: 32.38 kB / 437.4 MB, free: 188 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001385/0.276, allocations: 0.5737 MB / 437.9 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.207e-05/0.276, allocations: 3.938 kB / 438 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.391e-05/0.276, allocations: 12 kB / 438 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.2761, allocations: 4 kB / 438 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001493/0.2775, allocations: 0.5191 MB / 438.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001733/0.2793, allocations: 0.8985 MB / 439.4 MB, free: 14.08 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001663/0.2809, allocations: 474.5 kB / 439.9 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006852/0.2816, allocations: 245.4 kB / 440.1 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.169e-05/0.2817, allocations: 4 kB / 440.1 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.19e-05/0.2817, allocations: 46.42 kB / 440.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.104e-06/0.2817, allocations: 0 / 440.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.0381/0.3198, allocations: 5.791 MB / 445.9 MB, free: 7.469 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002618/0.3201, allocations: 160.8 kB / 446.1 MB, free: 7.281 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004152/0.3205, allocations: 265.8 kB / 446.3 MB, free: 7.016 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.523e-05/0.3206, allocations: 41.64 kB / 446.4 MB, free: 6.969 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001293/0.3207, allocations: 157.7 kB / 446.5 MB, free: 6.809 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002602/0.321, allocations: 198.3 kB / 446.7 MB, free: 6.613 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003156/0.3213, allocations: 114.6 kB / 446.8 MB, free: 6.492 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000191/0.3215, allocations: 346.8 kB / 447.2 MB, free: 6.145 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001747/0.3232, allocations: 0.6266 MB / 447.8 MB, free: 5.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001826/0.3251, allocations: 0.7965 MB / 448.6 MB, free: 4.648 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003341/0.3284, allocations: 1.264 MB / 449.9 MB, free: 3.305 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.3284, allocations: 0 / 449.9 MB, free: 3.305 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003901/0.3323, allocations: 1.407 MB / 451.3 MB, free: 1.891 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.3e-05/0.3323, allocations: 8 kB / 451.3 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.324e-05/0.3323, allocations: 8 kB / 451.3 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.512e-05/0.3324, allocations: 8 kB / 451.3 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001331/0.3337, allocations: 211.7 kB / 451.5 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.566e-05/0.3337, allocations: 19.88 kB / 451.5 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001054/0.3348, allocations: 103.8 kB / 451.6 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.054e-05/0.3349, allocations: 24 kB / 451.7 MB, free: 1.516 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: 3 (kinematicPTP.noWphase,kinematicPTP.motion_ref,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 (84): * Single equations (assignments): 84 * 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.0003518/0.3352, allocations: 189.6 kB / 451.8 MB, free: 1.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003374/0.3356, allocations: 169.3 kB / 452 MB, free: 1.148 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000179/0.3357, allocations: 67.61 kB / 452.1 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.398e-06/0.3357, allocations: 8 kB / 452.1 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.28e-05/0.3358, allocations: 7.938 kB / 452.1 MB, free: 1.066 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.3358, allocations: 3.984 kB / 452.1 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005097/0.3409, allocations: 1.976 MB / 454.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.445e-05/0.3409, allocations: 8 kB / 454.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007956/0.3417, allocations: 188.5 kB / 454.3 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.067e-05/0.3417, allocations: 19.94 kB / 454.3 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.864e-05/0.3418, allocations: 28 kB / 454.3 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.685e-05/0.3418, allocations: 19.92 kB / 454.3 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.177e-05/0.3418, allocations: 15.94 kB / 454.3 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003627/0.3454, allocations: 1.573 MB / 455.9 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000278/0.3457, allocations: 115.6 kB / 456 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.817e-05/0.3458, allocations: 27.98 kB / 456.1 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006193/0.3464, allocations: 71.92 kB / 456.1 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002416/0.3466, allocations: 99.64 kB / 456.2 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.358e-05/0.3467, allocations: 35.98 kB / 456.3 MB, free: 12.56 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002188/0.3469, allocations: 193.1 kB / 456.4 MB, free: 12.37 MB / 366.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.3469, allocations: 0 / 456.4 MB, free: 12.37 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006995/0.3476, allocations: 124 kB / 456.6 MB, free: 12.25 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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.00397/0.3516, allocations: 2.165 MB / 458.7 MB, free: 9.926 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00308/0.3546, allocations: 1.043 MB / 459.8 MB, free: 8.887 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.392e-05/0.3547, allocations: 4 kB / 459.8 MB, free: 8.883 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001134/0.3558, allocations: 346 kB / 460.1 MB, free: 8.547 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009823/0.3568, allocations: 159.1 kB / 460.3 MB, free: 8.398 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01484/0.3716, allocations: 6.947 MB / 467.2 MB, free: 0.957 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002812/0.3719, allocations: 228.6 kB / 467.4 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004875/0.3724, allocations: 104.1 kB / 467.5 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000384/0.3728, allocations: 127.4 kB / 467.7 MB, free: 500 kB / 366.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3728, allocations: 0 / 467.7 MB, free: 500 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04652/0.4193, allocations: 13.23 MB / 480.9 MB, free: 3.477 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.66, allocations: 14.42 kB / 480.9 MB, free: 3.465 MB / 382.1 MB " [Timeout remaining time 648] (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: 14.29244039900368]