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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001158/0.001158, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001353/0.001353, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.538/1.538, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001506, allocations: 55.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3333/0.3348, allocations: 50.55 MB / 408.7 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003944/0.3388, allocations: 2.396 MB / 411.1 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001927/0.3407, allocations: 0.8572 MB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000244/0.341, allocations: 8 kB / 412 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003326/0.3414, allocations: 55.52 kB / 412.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003067/0.3417, allocations: 67.48 kB / 412.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006637/0.3424, allocations: 195.6 kB / 412.3 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004604/0.3429, allocations: 395.5 kB / 412.7 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002173/0.3431, allocations: 107.5 kB / 412.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003786/0.3435, allocations: 175.4 kB / 413 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002922/0.3438, allocations: 179.2 kB / 413.1 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.342e-05/0.3439, allocations: 36 kB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.289e-05/0.3439, allocations: 32 kB / 413.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001248/0.3441, allocations: 107.7 kB / 413.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001663/0.3442, allocations: 171 kB / 413.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004495/0.3447, allocations: 365.3 kB / 413.8 MB, free: 12.39 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.3447, allocations: 4 kB / 413.8 MB, free: 12.39 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3447, allocations: 0 / 413.8 MB, free: 12.39 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.253e-05/0.3447, allocations: 4 kB / 413.9 MB, free: 12.38 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.001267/0.346, allocations: 0.6817 MB / 414.5 MB, free: 11.65 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.3461, allocations: 8.031 kB / 414.5 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.715e-05/0.3461, allocations: 74.7 kB / 414.6 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.651e-05/0.3462, allocations: 44.7 kB / 414.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004556/0.3467, allocations: 315.3 kB / 415 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001951/0.3469, allocations: 142.3 kB / 415.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.153e-05/0.347, allocations: 28.38 kB / 415.1 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001184/0.3482, allocations: 0.5698 MB / 415.7 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.861e-05/0.3482, allocations: 0 / 415.7 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.572e-05/0.3482, allocations: 12 kB / 415.7 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.157e-06/0.3483, allocations: 8 kB / 415.7 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00135/0.3496, allocations: 0.5151 MB / 416.2 MB, free: 9.859 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001541/0.3512, allocations: 1.026 MB / 417.3 MB, free: 8.758 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001636/0.3528, allocations: 0.4946 MB / 417.8 MB, free: 8.227 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006455/0.3535, allocations: 266.9 kB / 418 MB, free: 7.957 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.868e-05/0.3535, allocations: 8 kB / 418 MB, free: 7.949 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.209e-05/0.3536, allocations: 42.55 kB / 418.1 MB, free: 7.898 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 2.475e-06/0.3536, allocations: 0 / 418.1 MB, free: 7.898 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03847/0.3921, allocations: 5.768 MB / 423.8 MB, free: 2.117 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001428/0.3922, allocations: 145 kB / 424 MB, free: 1.945 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003645/0.3926, allocations: 266.5 kB / 424.2 MB, free: 1.676 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.83e-05/0.3927, allocations: 37.64 kB / 424.3 MB, free: 1.633 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001259/0.3929, allocations: 153.7 kB / 424.4 MB, free: 1.477 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002256/0.3931, allocations: 202.4 kB / 424.6 MB, free: 1.277 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003079/0.3934, allocations: 115 kB / 424.7 MB, free: 1.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.3936, allocations: 346.8 kB / 425.1 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00163/0.3952, allocations: 0.6227 MB / 425.7 MB, free: 192 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001772/0.397, allocations: 0.7925 MB / 426.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003069/0.4001, allocations: 1.255 MB / 427.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/0.4001, allocations: 0 / 427.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003686/0.4038, allocations: 1.406 MB / 429.1 MB, free: 12.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.299e-05/0.4038, allocations: 8 kB / 429.2 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.81e-05/0.4039, allocations: 4 kB / 429.2 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.738e-05/0.4039, allocations: 8 kB / 429.2 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001371/0.4053, allocations: 215.7 kB / 429.4 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.328e-05/0.4053, allocations: 11.98 kB / 429.4 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001005/0.4063, allocations: 99.78 kB / 429.5 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.98e-05/0.4064, allocations: 24 kB / 429.5 MB, free: 12.21 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.0003847/0.4068, allocations: 201.5 kB / 429.7 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003625/0.4072, allocations: 165.3 kB / 429.9 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001876/0.4074, allocations: 67.61 kB / 429.9 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.267e-06/0.4074, allocations: 8 kB / 429.9 MB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.319e-05/0.4074, allocations: 4 kB / 429.9 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.01e-05/0.4074, allocations: 3.984 kB / 430 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00514/0.4126, allocations: 2.18 MB / 432.1 MB, free: 9.387 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.155e-05/0.4127, allocations: 12 kB / 432.1 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008083/0.4135, allocations: 187.8 kB / 432.3 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.086e-05/0.4135, allocations: 12 kB / 432.3 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.022e-05/0.4136, allocations: 24 kB / 432.4 MB, free: 9.156 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.04e-05/0.4136, allocations: 23.92 kB / 432.4 MB, free: 9.133 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.427e-05/0.4136, allocations: 15.94 kB / 432.4 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00347/0.4171, allocations: 1.565 MB / 434 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003525/0.4175, allocations: 180.7 kB / 434.1 MB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.823e-05/0.4176, allocations: 27.98 kB / 434.2 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006507/0.4182, allocations: 76.17 kB / 434.2 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002155/0.4185, allocations: 99.66 kB / 434.3 MB, free: 7.004 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.089e-05/0.4185, allocations: 31.94 kB / 434.4 MB, free: 6.973 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002257/0.4188, allocations: 186 kB / 434.6 MB, free: 6.793 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4188, allocations: 0 / 434.6 MB, free: 6.793 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000827/0.4196, allocations: 127.9 kB / 434.7 MB, free: 6.668 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.004085/0.4237, allocations: 2.129 MB / 436.8 MB, free: 4.383 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003108/0.4269, allocations: 1.135 MB / 437.9 MB, free: 3.242 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.1e-05/0.4269, allocations: 5.375 kB / 437.9 MB, free: 3.238 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001085/0.428, allocations: 345.8 kB / 438.3 MB, free: 2.902 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001088/0.4291, allocations: 157.8 kB / 438.4 MB, free: 2.754 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01414/0.4433, allocations: 6.913 MB / 445.4 MB, free: 11.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00065/0.444, allocations: 0.8362 MB / 446.2 MB, free: 10.47 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005307/0.4445, allocations: 96.09 kB / 446.3 MB, free: 10.38 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004103/0.445, allocations: 123.3 kB / 446.4 MB, free: 10.25 MB / 366.1 MB Notification: Performance of SimCode: time 1.233e-06/0.445, allocations: 0 / 446.4 MB, free: 10.25 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04228/0.4873, allocations: 11.63 MB / 458 MB, free: 14.75 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.795/9.282, allocations: 15.38 kB / 458 MB, free: 14.73 MB / 382.1 MB (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.0016 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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_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! " Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:time,load.w,speed.flange.phi