Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001314/0.001315, allocations: 106.6 kB / 17.06 MB, free: 6.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001418/0.001417, allocations: 194.9 kB / 18 MB, free: 5.172 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.421/1.421, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001002/0.001002, allocations: 51.91 kB / 350.8 MB, free: 3.789 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.35/0.3511, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003963/0.3551, allocations: 2.392 MB / 402.6 MB, free: 6.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001744/0.3569, allocations: 0.822 MB / 403.4 MB, free: 5.602 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002212/0.3571, allocations: 15.94 kB / 403.5 MB, free: 5.586 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003472/0.3575, allocations: 51.58 kB / 403.5 MB, free: 5.535 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002548/0.3578, allocations: 67.48 kB / 403.6 MB, free: 5.469 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007044/0.3585, allocations: 195.6 kB / 403.8 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004583/0.3589, allocations: 399.4 kB / 404.1 MB, free: 4.887 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002353/0.3592, allocations: 99.52 kB / 404.2 MB, free: 4.785 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000245/0.3594, allocations: 167.4 kB / 404.4 MB, free: 4.621 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002568/0.3597, allocations: 175.2 kB / 404.6 MB, free: 4.449 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.242e-05/0.3598, allocations: 36 kB / 404.6 MB, free: 4.414 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.169e-05/0.3598, allocations: 32 kB / 404.6 MB, free: 4.383 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001331/0.36, allocations: 119.6 kB / 404.8 MB, free: 4.266 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001559/0.3602, allocations: 159.1 kB / 404.9 MB, free: 4.109 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004347/0.3606, allocations: 365.4 kB / 405.3 MB, free: 3.754 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.3606, allocations: 4 kB / 405.3 MB, free: 3.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3606, allocations: 3.938 kB / 405.3 MB, free: 3.746 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.3606, allocations: 0 / 405.3 MB, free: 3.746 MB / 318.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.001238/0.3619, allocations: 0.6818 MB / 406 MB, free: 3.016 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.3619, allocations: 12.03 kB / 406 MB, free: 3.004 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.407e-05/0.362, allocations: 66.72 kB / 406 MB, free: 2.93 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.431e-05/0.3621, allocations: 48.64 kB / 406.1 MB, free: 2.883 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005076/0.3626, allocations: 319.3 kB / 406.4 MB, free: 2.531 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001985/0.3628, allocations: 138.3 kB / 406.5 MB, free: 2.379 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.871e-05/0.3629, allocations: 32.38 kB / 406.6 MB, free: 2.348 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001213/0.3641, allocations: 0.5581 MB / 407.1 MB, free: 1.762 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.453e-05/0.3641, allocations: 7.953 kB / 407.1 MB, free: 1.754 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.348e-05/0.3642, allocations: 11.94 kB / 407.1 MB, free: 1.742 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/0.3642, allocations: 8 kB / 407.2 MB, free: 1.734 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001365/0.3656, allocations: 0.5113 MB / 407.7 MB, free: 1.223 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001589/0.3672, allocations: 1.014 MB / 408.7 MB, free: 136 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001625/0.3688, allocations: 0.5179 MB / 409.2 MB, free: 15.58 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006236/0.3694, allocations: 268.7 kB / 409.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.418e-05/0.3695, allocations: 4 kB / 409.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.347e-05/0.3695, allocations: 38.56 kB / 409.5 MB, free: 15.25 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 2.485e-06/0.3696, allocations: 0 / 409.5 MB, free: 15.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03752/0.4071, allocations: 5.777 MB / 415.3 MB, free: 9.461 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001705/0.4073, allocations: 152.9 kB / 415.4 MB, free: 9.281 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003759/0.4077, allocations: 266.5 kB / 415.7 MB, free: 9.016 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.141e-05/0.4078, allocations: 37.7 kB / 415.7 MB, free: 8.973 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001314/0.4079, allocations: 149.7 kB / 415.9 MB, free: 8.82 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002216/0.4082, allocations: 198.4 kB / 416.1 MB, free: 8.625 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000311/0.4085, allocations: 118.6 kB / 416.2 MB, free: 8.504 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001769/0.4087, allocations: 342.8 kB / 416.5 MB, free: 8.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001615/0.4103, allocations: 0.6149 MB / 417.1 MB, free: 7.543 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001733/0.412, allocations: 0.7964 MB / 417.9 MB, free: 6.664 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003069/0.4151, allocations: 1.247 MB / 419.2 MB, free: 5.34 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.4151, allocations: 0 / 419.2 MB, free: 5.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003691/0.4188, allocations: 1.402 MB / 420.6 MB, free: 3.934 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.67e-05/0.4189, allocations: 8 kB / 420.6 MB, free: 3.926 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.969e-05/0.4189, allocations: 8 kB / 420.6 MB, free: 3.918 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.085e-05/0.419, allocations: 16.22 kB / 420.6 MB, free: 3.902 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001298/0.4203, allocations: 211.6 kB / 420.8 MB, free: 3.695 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.924e-05/0.4203, allocations: 11.94 kB / 420.8 MB, free: 3.684 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009376/0.4213, allocations: 107.8 kB / 420.9 MB, free: 3.578 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.468e-05/0.4213, allocations: 24 kB / 421 MB, free: 3.555 MB / 334.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.0004094/0.4218, allocations: 193.6 kB / 421.1 MB, free: 3.355 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003422/0.4221, allocations: 165.3 kB / 421.3 MB, free: 3.188 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002182/0.4223, allocations: 67.61 kB / 421.4 MB, free: 3.121 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.208e-06/0.4224, allocations: 8 kB / 421.4 MB, free: 3.113 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.859e-06/0.4224, allocations: 0 / 421.4 MB, free: 3.113 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.093e-05/0.4224, allocations: 3.984 kB / 421.4 MB, free: 3.109 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004999/0.4274, allocations: 2.188 MB / 423.6 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.571e-05/0.4275, allocations: 12.03 kB / 423.6 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007658/0.4282, allocations: 183.8 kB / 423.8 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.104e-05/0.4283, allocations: 19.94 kB / 423.8 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.817e-05/0.4283, allocations: 24.23 kB / 423.8 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.308e-05/0.4284, allocations: 19.92 kB / 423.8 MB, free: 496 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.614e-05/0.4284, allocations: 15.94 kB / 423.8 MB, free: 480 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003536/0.4319, allocations: 1.568 MB / 425.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00031/0.4323, allocations: 180.7 kB / 425.6 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.502e-05/0.4324, allocations: 27.98 kB / 425.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005961/0.433, allocations: 75.98 kB / 425.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002151/0.4332, allocations: 95.67 kB / 425.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.141e-05/0.4333, allocations: 35.98 kB / 425.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002096/0.4335, allocations: 182 kB / 426 MB, free: 14.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4335, allocations: 0 / 426 MB, free: 14.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007121/0.4342, allocations: 127.9 kB / 426.1 MB, free: 14.02 MB / 350.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.003659/0.4379, allocations: 2.14 MB / 428.3 MB, free: 11.72 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002865/0.4407, allocations: 1.132 MB / 429.4 MB, free: 10.58 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/0.4408, allocations: 0 / 429.4 MB, free: 10.58 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009931/0.4418, allocations: 346 kB / 429.7 MB, free: 10.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009406/0.4427, allocations: 152.9 kB / 429.9 MB, free: 10.1 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01332/0.4561, allocations: 6.918 MB / 436.8 MB, free: 2.691 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004588/0.4566, allocations: 0.8324 MB / 437.6 MB, free: 1.832 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005346/0.4571, allocations: 92.11 kB / 437.7 MB, free: 1.738 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003833/0.4575, allocations: 123.4 kB / 437.8 MB, free: 1.617 MB / 350.1 MB Notification: Performance of SimCode: time 1.563e-06/0.4575, allocations: 4 kB / 437.8 MB, free: 1.613 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03375/0.4913, allocations: 11.63 MB / 449.5 MB, free: 6.117 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.689/9.18, allocations: 8.438 kB / 449.5 MB, free: 6.113 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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.0016 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable load.phi in file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv. Warning: Get data of variable load.phi from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv failed! Error: Could not read variable PI.x in file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv. Warning: Get data of variable PI.x from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv failed! " Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:time,load.w,speed.flange.phi