Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.001379/0.001379, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001467/0.001467, allocations: 203.5 kB / 23.72 MB, free: 4.391 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.422/1.422, allocations: 230.5 MB / 257.4 MB, free: 7.758 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.SubClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001903/0.001903, allocations: 67.89 kB / 377.7 MB, free: 2.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2619/0.2638, allocations: 53.41 MB / 431.1 MB, free: 6.477 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003692/0.2675, allocations: 2.265 MB / 433.4 MB, free: 4.203 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001521/0.269, allocations: 0.7988 MB / 434.2 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001367/0.2691, allocations: 7.938 kB / 434.2 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002678/0.2694, allocations: 55.56 kB / 434.3 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001991/0.2696, allocations: 59.5 kB / 434.3 MB, free: 3.277 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005221/0.2701, allocations: 186.7 kB / 434.5 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004232/0.2705, allocations: 383.6 kB / 434.9 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001777/0.2707, allocations: 78.83 kB / 434.9 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002912/0.271, allocations: 167.4 kB / 435.1 MB, free: 2.484 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002315/0.2712, allocations: 163.3 kB / 435.3 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.619e-05/0.2713, allocations: 32 kB / 435.3 MB, free: 2.293 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.885e-05/0.2714, allocations: 36 kB / 435.3 MB, free: 2.258 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001284/0.2715, allocations: 99.72 kB / 435.4 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001322/0.2716, allocations: 135.3 kB / 435.6 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004129/0.272, allocations: 338.6 kB / 435.9 MB, free: 1.695 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.272, allocations: 0 / 435.9 MB, free: 1.695 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.272, allocations: 3.938 kB / 435.9 MB, free: 1.691 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.098e-05/0.2721, allocations: 0 / 435.9 MB, free: 1.691 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001204/0.2733, allocations: 0.5561 MB / 436.5 MB, free: 1.105 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.2733, allocations: 11.98 kB / 436.5 MB, free: 1.094 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.754e-05/0.2734, allocations: 70.72 kB / 436.5 MB, free: 1.016 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.537e-05/0.2735, allocations: 44.7 kB / 436.6 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003732/0.2738, allocations: 218.4 kB / 436.8 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003464/0.2742, allocations: 355.9 kB / 437.1 MB, free: 320 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.366e-05/0.2742, allocations: 28.38 kB / 437.2 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001247/0.2755, allocations: 0.5698 MB / 437.7 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.682e-05/0.2755, allocations: 0 / 437.7 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.338e-05/0.2755, allocations: 12 kB / 437.7 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/0.2755, allocations: 8 kB / 437.8 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001414/0.277, allocations: 0.5074 MB / 438.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001683/0.2786, allocations: 0.8985 MB / 439.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001499/0.2801, allocations: 470.4 kB / 439.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006779/0.2808, allocations: 242.6 kB / 439.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.894e-05/0.2809, allocations: 11.98 kB / 439.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.399e-05/0.2809, allocations: 46.48 kB / 439.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.973e-06/0.2809, allocations: 0 / 439.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.03795/0.3189, allocations: 5.735 MB / 445.6 MB, free: 7.645 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001225/0.319, allocations: 149.3 kB / 445.8 MB, free: 7.469 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002432/0.3192, allocations: 212 kB / 446 MB, free: 7.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.059e-05/0.3193, allocations: 41.64 kB / 446 MB, free: 7.203 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001069/0.3194, allocations: 149.7 kB / 446.2 MB, free: 7.051 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002055/0.3196, allocations: 210.3 kB / 446.4 MB, free: 6.844 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002738/0.3199, allocations: 110.6 kB / 446.5 MB, free: 6.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001815/0.3201, allocations: 342.8 kB / 446.8 MB, free: 6.387 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001654/0.3217, allocations: 0.6188 MB / 447.5 MB, free: 5.766 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002004/0.3237, allocations: 0.8081 MB / 448.3 MB, free: 4.883 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003205/0.3269, allocations: 1.252 MB / 449.5 MB, free: 3.559 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.3269, allocations: 0 / 449.5 MB, free: 3.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.00373/0.3307, allocations: 1.415 MB / 450.9 MB, free: 2.133 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.345e-05/0.3307, allocations: 8.031 kB / 450.9 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.419e-05/0.3307, allocations: 8 kB / 450.9 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.619e-05/0.3307, allocations: 8 kB / 451 MB, free: 2.109 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001314/0.3321, allocations: 207.7 kB / 451.2 MB, free: 1.906 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.428e-05/0.3321, allocations: 20.19 kB / 451.2 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009571/0.333, allocations: 103.8 kB / 451.3 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.004e-05/0.3331, allocations: 28 kB / 451.3 MB, free: 1.758 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: 3 (kinematicPTP.noWphase,kinematicPTP.motion_ref,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 (84): * Single equations (assignments): 84 * 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.0003449/0.3335, allocations: 177.6 kB / 451.5 MB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000342/0.3338, allocations: 153.4 kB / 451.6 MB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001852/0.334, allocations: 67.3 kB / 451.7 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.078e-05/0.334, allocations: 8 kB / 451.7 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.243e-05/0.334, allocations: 7.938 kB / 451.7 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.334, allocations: 3.984 kB / 451.7 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005104/0.3391, allocations: 1.965 MB / 453.7 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-05/0.3391, allocations: 8 kB / 453.7 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007949/0.3399, allocations: 187.7 kB / 453.9 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.829e-05/0.3399, allocations: 16.12 kB / 453.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.797e-05/0.34, allocations: 28 kB / 453.9 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.847e-05/0.34, allocations: 23.86 kB / 453.9 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.524e-05/0.34, allocations: 15.94 kB / 454 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003555/0.3436, allocations: 1.573 MB / 455.5 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002326/0.3438, allocations: 91.62 kB / 455.6 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.134e-05/0.3439, allocations: 27.98 kB / 455.6 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006068/0.3445, allocations: 87.91 kB / 455.7 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002005/0.3447, allocations: 95.88 kB / 455.8 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.522e-05/0.3448, allocations: 32 kB / 455.9 MB, free: 12.87 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001445/0.3449, allocations: 145.2 kB / 456 MB, free: 12.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3449, allocations: 0 / 456 MB, free: 12.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006621/0.3456, allocations: 124 kB / 456.1 MB, free: 12.61 MB / 366.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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.003734/0.3493, allocations: 2.157 MB / 458.3 MB, free: 10.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002972/0.3523, allocations: 1.038 MB / 459.3 MB, free: 9.25 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.083e-05/0.3523, allocations: 4 kB / 459.3 MB, free: 9.246 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001049/0.3533, allocations: 334.5 kB / 459.6 MB, free: 8.922 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000928/0.3543, allocations: 132.3 kB / 459.8 MB, free: 8.793 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01416/0.3684, allocations: 6.838 MB / 466.6 MB, free: 1.461 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002649/0.3687, allocations: 211.3 kB / 466.8 MB, free: 1.23 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005239/0.3692, allocations: 99.28 kB / 466.9 MB, free: 1.133 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000396/0.3696, allocations: 115.4 kB / 467 MB, free: 1.02 MB / 366.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3696, allocations: 0 / 467 MB, free: 1.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04616/0.4158, allocations: 12.65 MB / 479.7 MB, free: 4.523 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.55, allocations: 10.45 kB / 479.7 MB, free: 4.516 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000499563 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.SubClocked_res.csv. Warning: Get data of variable load.phi from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv failed! Error: Could not read variable PI.x in file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv. Warning: Get data of variable PI.x from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:time,load.w,speed.flange.phi [Calling sys.exit(0), Time elapsed: 14.110748786944896]