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.001568/0.001568, allocations: 110.1 kB / 17.06 MB, free: 6.02 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.001836/0.001836, allocations: 191 kB / 18 MB, free: 5.102 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.458/1.458, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 47.94 kB / 350.8 MB, free: 3.777 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3228/0.3241, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004969/0.3291, allocations: 2.391 MB / 402.6 MB, free: 6.422 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001958/0.3311, allocations: 0.8221 MB / 403.4 MB, free: 5.594 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002317/0.3314, allocations: 11.94 kB / 403.4 MB, free: 5.582 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003365/0.3318, allocations: 55.58 kB / 403.5 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002336/0.332, allocations: 67.48 kB / 403.6 MB, free: 5.461 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006048/0.3326, allocations: 198.6 kB / 403.8 MB, free: 5.27 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004089/0.3331, allocations: 399.4 kB / 404.1 MB, free: 4.879 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002183/0.3333, allocations: 111.5 kB / 404.3 MB, free: 4.766 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002073/0.3335, allocations: 155.5 kB / 404.4 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002462/0.3338, allocations: 183.2 kB / 404.6 MB, free: 4.434 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.722e-05/0.3338, allocations: 36 kB / 404.6 MB, free: 4.398 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.932e-05/0.3339, allocations: 32 kB / 404.7 MB, free: 4.367 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001245/0.334, allocations: 115.6 kB / 404.8 MB, free: 4.254 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000148/0.3342, allocations: 159.1 kB / 404.9 MB, free: 4.098 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004848/0.3347, allocations: 373.4 kB / 405.3 MB, free: 3.734 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.3347, allocations: 0 / 405.3 MB, free: 3.734 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3347, allocations: 7.938 kB / 405.3 MB, free: 3.727 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.302e-05/0.3347, allocations: 0 / 405.3 MB, free: 3.727 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.001448/0.3362, allocations: 0.674 MB / 406 MB, free: 3.004 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.785e-05/0.3362, allocations: 8.031 kB / 406 MB, free: 2.996 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001095/0.3363, allocations: 78.66 kB / 406.1 MB, free: 2.91 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001071/0.3365, allocations: 44.7 kB / 406.1 MB, free: 2.867 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000571/0.337, allocations: 311.3 kB / 406.4 MB, free: 2.523 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002132/0.3373, allocations: 142.3 kB / 406.5 MB, free: 2.367 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.731e-05/0.3373, allocations: 28.38 kB / 406.6 MB, free: 2.34 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001244/0.3386, allocations: 0.5659 MB / 407.1 MB, free: 1.746 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.797e-05/0.3386, allocations: 7.953 kB / 407.1 MB, free: 1.738 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.114e-05/0.3387, allocations: 11.94 kB / 407.2 MB, free: 1.727 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.134e-05/0.3387, allocations: 8 kB / 407.2 MB, free: 1.719 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001342/0.34, allocations: 0.5074 MB / 407.7 MB, free: 1.211 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001611/0.3417, allocations: 1.022 MB / 408.7 MB, free: 116 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001631/0.3433, allocations: 0.5062 MB / 409.2 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006208/0.3439, allocations: 267.4 kB / 409.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.792e-05/0.344, allocations: 8 kB / 409.5 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.783e-05/0.3441, allocations: 38.56 kB / 409.5 MB, free: 15.24 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 2.415e-06/0.3441, allocations: 0 / 409.5 MB, free: 15.24 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03847/0.3825, allocations: 5.768 MB / 415.3 MB, free: 9.457 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001065/0.3827, allocations: 152.9 kB / 415.4 MB, free: 9.277 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002782/0.383, allocations: 266.5 kB / 415.7 MB, free: 9.012 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.594e-05/0.3831, allocations: 37.7 kB / 415.7 MB, free: 8.969 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.22e-05/0.3831, allocations: 153.7 kB / 415.9 MB, free: 8.812 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001818/0.3833, allocations: 198.4 kB / 416.1 MB, free: 8.617 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000283/0.3836, allocations: 110.6 kB / 416.2 MB, free: 8.504 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.3837, allocations: 342.8 kB / 416.5 MB, free: 8.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00154/0.3853, allocations: 0.6188 MB / 417.1 MB, free: 7.539 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001673/0.387, allocations: 0.7964 MB / 417.9 MB, free: 6.66 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002996/0.39, allocations: 1.259 MB / 419.2 MB, free: 5.324 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.381e-06/0.39, allocations: 0 / 419.2 MB, free: 5.324 MB / 334.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003507/0.3935, allocations: 1.398 MB / 420.6 MB, free: 3.922 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.926e-05/0.3936, allocations: 8 kB / 420.6 MB, free: 3.914 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.633e-05/0.3936, allocations: 4 kB / 420.6 MB, free: 3.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.758e-05/0.3936, allocations: 15.94 kB / 420.6 MB, free: 3.895 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001331/0.395, allocations: 211.7 kB / 420.8 MB, free: 3.688 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.997e-05/0.395, allocations: 11.94 kB / 420.8 MB, free: 3.676 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009448/0.396, allocations: 103.8 kB / 420.9 MB, free: 3.574 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.634e-05/0.396, allocations: 28 kB / 420.9 MB, free: 3.547 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.0003434/0.3964, allocations: 189.6 kB / 421.1 MB, free: 3.352 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003183/0.3967, allocations: 161.7 kB / 421.3 MB, free: 3.188 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001517/0.3969, allocations: 71.61 kB / 421.4 MB, free: 3.117 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.706e-06/0.3969, allocations: 8.094 kB / 421.4 MB, free: 3.109 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.767e-06/0.3969, allocations: 3.938 kB / 421.4 MB, free: 3.105 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.674e-06/0.3969, allocations: 3.984 kB / 421.4 MB, free: 3.102 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004632/0.4016, allocations: 2.191 MB / 423.6 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.319e-05/0.4016, allocations: 8 kB / 423.6 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007649/0.4024, allocations: 187.8 kB / 423.8 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.795e-05/0.4024, allocations: 16 kB / 423.8 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.16e-05/0.4025, allocations: 24 kB / 423.8 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-05/0.4025, allocations: 15.94 kB / 423.8 MB, free: 492 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.244e-05/0.4025, allocations: 15.94 kB / 423.8 MB, free: 476 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003138/0.4056, allocations: 1.568 MB / 425.4 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002457/0.4059, allocations: 180.7 kB / 425.6 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.463e-05/0.406, allocations: 24 kB / 425.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006007/0.4066, allocations: 83.97 kB / 425.7 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001824/0.4068, allocations: 91.67 kB / 425.8 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.691e-05/0.4068, allocations: 28 kB / 425.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001858/0.407, allocations: 189.9 kB / 426 MB, free: 14.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.407, allocations: 0 / 426 MB, free: 14.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007001/0.4078, allocations: 127.9 kB / 426.1 MB, free: 14.01 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.00349/0.4112, allocations: 2.14 MB / 428.2 MB, free: 11.71 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002819/0.4141, allocations: 1.131 MB / 429.4 MB, free: 10.58 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.223e-06/0.4141, allocations: 1.375 kB / 429.4 MB, free: 10.58 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001008/0.4151, allocations: 345.9 kB / 429.7 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009844/0.4161, allocations: 152.9 kB / 429.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0133/0.4294, allocations: 6.921 MB / 436.8 MB, free: 2.684 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004844/0.43, allocations: 0.8285 MB / 437.6 MB, free: 1.828 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005435/0.4305, allocations: 96.09 kB / 437.7 MB, free: 1.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003905/0.4309, allocations: 123.4 kB / 437.8 MB, free: 1.609 MB / 350.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4309, allocations: 0 / 437.8 MB, free: 1.609 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03171/0.4626, allocations: 11.64 MB / 449.5 MB, free: 6.109 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.728/9.191, allocations: 4.375 kB / 449.5 MB, free: 6.109 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