Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001296/0.001296, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001685/0.001685, allocations: 213.6 kB / 23.73 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.438/1.438, allocations: 230.5 MB / 257.4 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] 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.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001931/0.001931, allocations: 63.91 kB / 377.7 MB, free: 2.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2942/0.2961, allocations: 53.4 MB / 431.1 MB, free: 6.488 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003446/0.2996, allocations: 2.081 MB / 433.2 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001241/0.3008, allocations: 0.651 MB / 433.8 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001092/0.3009, allocations: 11.88 kB / 433.9 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002535/0.3012, allocations: 43.7 kB / 433.9 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001508/0.3013, allocations: 51.56 kB / 434 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003536/0.3017, allocations: 119.8 kB / 434.1 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003962/0.3021, allocations: 355.1 kB / 434.4 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001547/0.3022, allocations: 46.2 kB / 434.5 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000274/0.3025, allocations: 151.6 kB / 434.6 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002129/0.3027, allocations: 143.4 kB / 434.7 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.073e-05/0.3027, allocations: 28 kB / 434.8 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.279e-05/0.3028, allocations: 32 kB / 434.8 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001065/0.3029, allocations: 91.72 kB / 434.9 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001087/0.303, allocations: 107.5 kB / 435 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003309/0.3033, allocations: 286.9 kB / 435.3 MB, free: 2.305 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.3034, allocations: 0 / 435.3 MB, free: 2.305 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3034, allocations: 0 / 435.3 MB, free: 2.305 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.3034, allocations: 4 kB / 435.3 MB, free: 2.301 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001123/0.3045, allocations: 0.5205 MB / 435.8 MB, free: 1.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.3045, allocations: 11.98 kB / 435.8 MB, free: 1.738 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.228e-05/0.3046, allocations: 66.67 kB / 435.9 MB, free: 1.664 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.96e-05/0.3047, allocations: 32.8 kB / 435.9 MB, free: 1.633 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003563/0.305, allocations: 190.3 kB / 436.1 MB, free: 1.426 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003316/0.3053, allocations: 347.5 kB / 436.4 MB, free: 1.02 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.88e-05/0.3054, allocations: 24 kB / 436.5 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009179/0.3063, allocations: 366.6 kB / 436.8 MB, free: 0.625 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.025e-05/0.3063, allocations: 11.89 kB / 436.8 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.372e-05/0.3064, allocations: 11.98 kB / 436.8 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/0.3064, allocations: 4 kB / 436.8 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001409/0.3078, allocations: 497.6 kB / 437.3 MB, free: 112 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001796/0.3096, allocations: 0.903 MB / 438.2 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001086/0.3107, allocations: 311 kB / 438.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000546/0.3112, allocations: 169.2 kB / 438.7 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.828e-05/0.3113, allocations: 8 kB / 438.7 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.968e-05/0.3113, allocations: 34.56 kB / 438.7 MB, free: 14.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.964e-06/0.3113, allocations: 0 / 438.7 MB, free: 14.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=53): time 0.02689/0.3382, allocations: 5.676 MB / 444.4 MB, free: 8.887 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.267e-05/0.3382, allocations: 59.78 kB / 444.5 MB, free: 8.816 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002744/0.3385, allocations: 206.3 kB / 444.7 MB, free: 8.605 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.662e-05/0.3386, allocations: 33.7 kB / 444.7 MB, free: 8.566 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001075/0.3387, allocations: 156.9 kB / 444.9 MB, free: 8.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001694/0.3388, allocations: 190.4 kB / 445.1 MB, free: 8.223 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002069/0.3391, allocations: 86.34 kB / 445.1 MB, free: 8.133 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.3392, allocations: 338.8 kB / 445.5 MB, free: 7.793 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001373/0.3406, allocations: 469 kB / 445.9 MB, free: 7.332 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001431/0.342, allocations: 0.5264 MB / 446.5 MB, free: 6.797 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002485/0.3445, allocations: 0.814 MB / 447.3 MB, free: 5.969 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.3445, allocations: 0 / 447.3 MB, free: 5.969 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002977/0.3475, allocations: 1.005 MB / 448.3 MB, free: 4.957 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.3475, allocations: 4 kB / 448.3 MB, free: 4.953 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.3475, allocations: 3.938 kB / 448.3 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.979e-05/0.3475, allocations: 4.125 kB / 448.3 MB, free: 4.945 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009836/0.3485, allocations: 171.7 kB / 448.5 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.143e-05/0.3485, allocations: 4 kB / 448.5 MB, free: 4.773 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007029/0.3492, allocations: 87.88 kB / 448.5 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.065e-05/0.3493, allocations: 16 kB / 448.6 MB, free: 4.672 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0002533/0.3495, allocations: 165.7 kB / 448.7 MB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.429e-05/0.3496, allocations: 27.81 kB / 448.7 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001256/0.3498, allocations: 51.25 kB / 448.8 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.428e-06/0.3498, allocations: 11.98 kB / 448.8 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.3498, allocations: 0 / 448.8 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.3498, allocations: 0 / 448.8 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004311/0.3541, allocations: 1.745 MB / 450.6 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.044e-05/0.3541, allocations: 8 kB / 450.6 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006509/0.3548, allocations: 147.8 kB / 450.7 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.305e-05/0.3548, allocations: 12 kB / 450.7 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.609e-05/0.3548, allocations: 23.94 kB / 450.7 MB, free: 2.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.334e-05/0.3548, allocations: 12.22 kB / 450.8 MB, free: 2.309 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-05/0.3548, allocations: 19.94 kB / 450.8 MB, free: 2.289 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003042/0.3579, allocations: 1.248 MB / 452 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002094/0.3581, allocations: 67.75 kB / 452.1 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.326e-05/0.3582, allocations: 23.98 kB / 452.1 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005357/0.3587, allocations: 71.92 kB / 452.2 MB, free: 0.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002002/0.3589, allocations: 91.64 kB / 452.3 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.124e-05/0.3589, allocations: 24 kB / 452.3 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001979/0.3591, allocations: 156.3 kB / 452.4 MB, free: 496 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3591, allocations: 3.938 kB / 452.5 MB, free: 492 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004963/0.3596, allocations: 96 kB / 452.5 MB, free: 396 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.003388/0.363, allocations: 1.802 MB / 454.3 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002447/0.3655, allocations: 0.7902 MB / 455.1 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.009e-05/0.3655, allocations: 7.938 kB / 455.1 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001024/0.3665, allocations: 329.8 kB / 455.5 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006173/0.3671, allocations: 66.55 kB / 455.5 MB, free: 13.27 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01144/0.3785, allocations: 5.297 MB / 460.8 MB, free: 7.652 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000229/0.3788, allocations: 176.2 kB / 461 MB, free: 7.461 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000444/0.3792, allocations: 82.88 kB / 461.1 MB, free: 7.383 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002857/0.3795, allocations: 95.41 kB / 461.2 MB, free: 7.289 MB / 366.1 MB Notification: Performance of SimCode: time 1.032e-06/0.3795, allocations: 0 / 461.2 MB, free: 7.289 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04024/0.4197, allocations: 9.399 MB / 470.6 MB, free: 14.04 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.42, allocations: 15.11 kB / 470.6 MB, free: 14.03 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000798722 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable load.phi in file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv. Warning: Get data of variable load.phi from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.95342719508335]