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.001296/0.001295, allocations: 110.5 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.001534/0.001534, allocations: 200.1 kB / 18 MB, free: 5.168 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.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 51.91 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.321/0.3225, allocations: 49.44 MB / 400.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004193/0.3267, allocations: 2.38 MB / 402.6 MB, free: 6.426 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001679/0.3284, allocations: 0.8221 MB / 403.4 MB, free: 5.598 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001926/0.3286, allocations: 11.94 kB / 403.4 MB, free: 5.586 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003266/0.329, allocations: 55.58 kB / 403.5 MB, free: 5.531 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002428/0.3292, allocations: 67.42 kB / 403.6 MB, free: 5.465 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000625/0.3299, allocations: 203.5 kB / 403.8 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004553/0.3303, allocations: 391.5 kB / 404.1 MB, free: 4.883 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000224/0.3306, allocations: 103.5 kB / 404.2 MB, free: 4.777 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000235/0.3308, allocations: 163.4 kB / 404.4 MB, free: 4.617 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002663/0.3311, allocations: 183.2 kB / 404.6 MB, free: 4.438 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.317e-05/0.3312, allocations: 32 kB / 404.6 MB, free: 4.406 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.994e-05/0.3312, allocations: 36 kB / 404.6 MB, free: 4.371 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001263/0.3314, allocations: 103.7 kB / 404.7 MB, free: 4.27 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001648/0.3315, allocations: 163 kB / 404.9 MB, free: 4.109 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004733/0.332, allocations: 373.4 kB / 405.3 MB, free: 3.746 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.332, allocations: 0 / 405.3 MB, free: 3.746 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.332, allocations: 0 / 405.3 MB, free: 3.746 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.332, allocations: 4 kB / 405.3 MB, free: 3.742 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.001355/0.3334, allocations: 0.6778 MB / 406 MB, free: 3.016 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.3335, allocations: 16.02 kB / 406 MB, free: 3 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.535e-05/0.3336, allocations: 70.73 kB / 406 MB, free: 2.922 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.743e-05/0.3337, allocations: 48.64 kB / 406.1 MB, free: 2.875 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005261/0.3342, allocations: 311.3 kB / 406.4 MB, free: 2.531 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002233/0.3344, allocations: 142.3 kB / 406.5 MB, free: 2.375 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.073e-05/0.3345, allocations: 32.31 kB / 406.6 MB, free: 2.344 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001253/0.3358, allocations: 0.5659 MB / 407.1 MB, free: 1.75 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.26e-05/0.3358, allocations: 7.938 kB / 407.1 MB, free: 1.742 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.662e-05/0.3358, allocations: 12 kB / 407.1 MB, free: 1.73 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/0.3358, allocations: 4 kB / 407.2 MB, free: 1.727 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001421/0.3373, allocations: 0.5074 MB / 407.7 MB, free: 1.219 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001529/0.3388, allocations: 1.022 MB / 408.7 MB, free: 124 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001675/0.3405, allocations: 0.5095 MB / 409.2 MB, free: 15.58 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006775/0.3412, allocations: 264.9 kB / 409.4 MB, free: 15.31 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.215e-05/0.3413, allocations: 15.98 kB / 409.5 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.068e-05/0.3413, allocations: 38.5 kB / 409.5 MB, free: 15.25 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 2.044e-06/0.3413, allocations: 0 / 409.5 MB, free: 15.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03857/0.3799, allocations: 5.771 MB / 415.3 MB, free: 9.457 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001288/0.38, allocations: 148.9 kB / 415.4 MB, free: 9.281 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003156/0.3804, allocations: 262.5 kB / 415.7 MB, free: 9.02 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.445e-05/0.3805, allocations: 41.7 kB / 415.7 MB, free: 8.973 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001219/0.3806, allocations: 153.7 kB / 415.9 MB, free: 8.816 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002027/0.3808, allocations: 190.4 kB / 416.1 MB, free: 8.629 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000305/0.3811, allocations: 118.6 kB / 416.2 MB, free: 8.508 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.3813, allocations: 342.8 kB / 416.5 MB, free: 8.164 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001692/0.383, allocations: 0.6188 MB / 417.1 MB, free: 7.543 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00183/0.3848, allocations: 0.7963 MB / 417.9 MB, free: 6.668 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00327/0.3881, allocations: 1.244 MB / 419.2 MB, free: 5.344 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/0.3881, allocations: 4 kB / 419.2 MB, free: 5.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003717/0.3918, allocations: 1.402 MB / 420.6 MB, free: 3.934 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.266e-05/0.3919, allocations: 4 kB / 420.6 MB, free: 3.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.435e-05/0.3919, allocations: 11.94 kB / 420.6 MB, free: 3.918 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.34e-05/0.3919, allocations: 8 kB / 420.6 MB, free: 3.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001365/0.3933, allocations: 219.7 kB / 420.8 MB, free: 3.695 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.051e-05/0.3933, allocations: 15.94 kB / 420.8 MB, free: 3.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009619/0.3943, allocations: 99.78 kB / 420.9 MB, free: 3.582 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.585e-05/0.3944, allocations: 27.98 kB / 420.9 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.0003482/0.3948, allocations: 193.6 kB / 421.1 MB, free: 3.355 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003298/0.3951, allocations: 169.3 kB / 421.3 MB, free: 3.184 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001831/0.3953, allocations: 67.61 kB / 421.4 MB, free: 3.117 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.799e-06/0.3953, allocations: 8 kB / 421.4 MB, free: 3.109 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.333e-06/0.3953, allocations: 0 / 421.4 MB, free: 3.109 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/0.3953, allocations: 7.984 kB / 421.4 MB, free: 3.102 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005018/0.4004, allocations: 2.184 MB / 423.6 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-05/0.4004, allocations: 8 kB / 423.6 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007931/0.4012, allocations: 183.9 kB / 423.8 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.835e-05/0.4012, allocations: 15.94 kB / 423.8 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.677e-05/0.4013, allocations: 28 kB / 423.8 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-05/0.4013, allocations: 19.92 kB / 423.8 MB, free: 496 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.557e-05/0.4013, allocations: 15.94 kB / 423.8 MB, free: 480 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003549/0.4049, allocations: 1.565 MB / 425.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003015/0.4052, allocations: 176.7 kB / 425.6 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.375e-05/0.4053, allocations: 31.98 kB / 425.6 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005983/0.4059, allocations: 75.98 kB / 425.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002239/0.4062, allocations: 91.66 kB / 425.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.806e-05/0.4062, allocations: 39.94 kB / 425.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002188/0.4064, allocations: 186 kB / 426 MB, free: 14.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4064, allocations: 192 / 426 MB, free: 14.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006979/0.4072, allocations: 123.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.003827/0.411, allocations: 2.141 MB / 428.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003124/0.4141, allocations: 1.135 MB / 429.4 MB, free: 10.58 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.092e-05/0.4142, allocations: 5.375 kB / 429.4 MB, free: 10.58 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001081/0.4153, allocations: 337.8 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.001012/0.4163, allocations: 149.1 kB / 429.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01424/0.4305, allocations: 6.921 MB / 436.8 MB, free: 2.695 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005222/0.4311, allocations: 0.829 MB / 437.6 MB, free: 1.84 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005331/0.4316, allocations: 108.1 kB / 437.7 MB, free: 1.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003946/0.432, allocations: 119.4 kB / 437.8 MB, free: 1.613 MB / 350.1 MB Notification: Performance of SimCode: time 9.41e-07/0.4321, allocations: 0 / 437.8 MB, free: 1.613 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05099/0.4831, allocations: 11.63 MB / 449.5 MB, free: 6.125 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.97/9.453, allocations: 8.438 kB / 449.5 MB, free: 6.121 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