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.001768/0.001768, allocations: 120.4 kB / 20.44 MB, free: 1.461 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.002208/0.002208, allocations: 212.1 kB / 23.74 MB, free: 4.695 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.526/1.526, allocations: 230.5 MB / 257.4 MB, free: 8.199 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.002021/0.002021, allocations: 55.91 kB / 377.8 MB, free: 3.066 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2917/0.2937, allocations: 53.41 MB / 431.2 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003638/0.2973, allocations: 2.175 MB / 433.3 MB, free: 4.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001361/0.2987, allocations: 0.6977 MB / 434 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000119/0.2988, allocations: 7.938 kB / 434 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002807/0.2991, allocations: 43.64 kB / 434.1 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001529/0.2993, allocations: 55.62 kB / 434.1 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003513/0.2996, allocations: 123.8 kB / 434.3 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004273/0.3, allocations: 347.1 kB / 434.6 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001628/0.3002, allocations: 52.52 kB / 434.7 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002874/0.3005, allocations: 147.5 kB / 434.8 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002442/0.3007, allocations: 167.4 kB / 435 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.946e-05/0.3008, allocations: 28 kB / 435 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.925e-05/0.3008, allocations: 32 kB / 435 MB, free: 2.828 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000102/0.3009, allocations: 83.8 kB / 435.1 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001298/0.3011, allocations: 119.4 kB / 435.2 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003732/0.3014, allocations: 287.2 kB / 435.5 MB, free: 2.352 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.3014, allocations: 0 / 435.5 MB, free: 2.352 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.3014, allocations: 0 / 435.5 MB, free: 2.352 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.002e-06/0.3015, allocations: 0 / 435.5 MB, free: 2.352 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.001114/0.3026, allocations: 0.5166 MB / 436 MB, free: 1.805 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.3026, allocations: 8.031 kB / 436 MB, free: 1.797 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.721e-05/0.3027, allocations: 66.73 kB / 436.1 MB, free: 1.723 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.394e-05/0.3028, allocations: 32.8 kB / 436.1 MB, free: 1.691 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003569/0.3031, allocations: 190.2 kB / 436.3 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003319/0.3034, allocations: 351.5 kB / 436.7 MB, free: 1.074 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.253e-05/0.3035, allocations: 24 kB / 436.7 MB, free: 1.051 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008654/0.3044, allocations: 362.6 kB / 437 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.974e-05/0.3044, allocations: 3.953 kB / 437 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.22e-05/0.3044, allocations: 12 kB / 437 MB, free: 0.668 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.645e-06/0.3044, allocations: 4 kB / 437 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0013/0.3057, allocations: 497.6 kB / 437.5 MB, free: 180 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00179/0.3075, allocations: 0.9538 MB / 438.5 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001185/0.3087, allocations: 329.2 kB / 438.8 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004891/0.3092, allocations: 161.2 kB / 439 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.785e-05/0.3092, allocations: 4.234 kB / 439 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.75e-05/0.3093, allocations: 38.8 kB / 439 MB, free: 14.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.403e-06/0.3093, allocations: 4 kB / 439 MB, free: 14.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.02673/0.336, allocations: 5.647 MB / 444.7 MB, free: 8.926 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.38e-05/0.336, allocations: 55.84 kB / 444.7 MB, free: 8.859 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002524/0.3363, allocations: 199.2 kB / 444.9 MB, free: 8.656 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.398e-05/0.3363, allocations: 33.7 kB / 444.9 MB, free: 8.617 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/0.3364, allocations: 152.9 kB / 445.1 MB, free: 8.465 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001724/0.3366, allocations: 186.4 kB / 445.3 MB, free: 8.281 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002017/0.3368, allocations: 98.23 kB / 445.4 MB, free: 8.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.337, allocations: 338.8 kB / 445.7 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001269/0.3383, allocations: 465 kB / 446.2 MB, free: 7.383 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001313/0.3396, allocations: 0.5185 MB / 446.7 MB, free: 6.855 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002282/0.3418, allocations: 0.8023 MB / 447.5 MB, free: 6.039 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.3419, allocations: 0 / 447.5 MB, free: 6.039 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002689/0.3445, allocations: 0.9852 MB / 448.5 MB, free: 5.047 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.3446, allocations: 15.92 kB / 448.5 MB, free: 5.031 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.3446, allocations: 4.125 kB / 448.5 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.449e-05/0.3446, allocations: 7.984 kB / 448.5 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009568/0.3455, allocations: 163.8 kB / 448.6 MB, free: 4.859 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.3456, allocations: 0 / 448.6 MB, free: 4.859 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006498/0.3462, allocations: 87.89 kB / 448.7 MB, free: 4.773 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.315e-05/0.3463, allocations: 19.98 kB / 448.8 MB, free: 4.754 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: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0002251/0.3465, allocations: 157.7 kB / 448.9 MB, free: 4.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.257e-05/0.3466, allocations: 31.75 kB / 448.9 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001251/0.3467, allocations: 55.3 kB / 449 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.3467, allocations: 8 kB / 449 MB, free: 4.496 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.3467, allocations: 0 / 449 MB, free: 4.496 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.3467, allocations: 3.984 kB / 449 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004096/0.3508, allocations: 1.853 MB / 450.9 MB, free: 2.484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.208e-06/0.3508, allocations: 8 kB / 450.9 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006283/0.3514, allocations: 143.7 kB / 451 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.501e-05/0.3515, allocations: 15.94 kB / 451 MB, free: 2.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.722e-05/0.3515, allocations: 20 kB / 451 MB, free: 2.301 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.936e-05/0.3515, allocations: 23.91 kB / 451.1 MB, free: 2.277 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.103e-06/0.3515, allocations: 8 kB / 451.1 MB, free: 2.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002727/0.3543, allocations: 1.225 MB / 452.3 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001619/0.3544, allocations: 71.78 kB / 452.4 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.324e-05/0.3545, allocations: 19.98 kB / 452.4 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005107/0.355, allocations: 75.92 kB / 452.5 MB, free: 0.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001749/0.3552, allocations: 87.7 kB / 452.5 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-05/0.3552, allocations: 24 kB / 452.6 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001789/0.3554, allocations: 151.5 kB / 452.7 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3554, allocations: 3.938 kB / 452.7 MB, free: 500 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004663/0.3559, allocations: 92 kB / 452.8 MB, free: 408 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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.00312/0.359, allocations: 1.781 MB / 454.6 MB, free: 14.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002282/0.3613, allocations: 0.7864 MB / 455.4 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.172e-06/0.3613, allocations: 0 / 455.4 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000912/0.3622, allocations: 320.8 kB / 455.7 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006381/0.3628, allocations: 60.78 kB / 455.8 MB, free: 13.33 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01076/0.3736, allocations: 5.246 MB / 461 MB, free: 7.754 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004507/0.374, allocations: 0.784 MB / 461.8 MB, free: 6.941 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004156/0.3744, allocations: 87.17 kB / 461.9 MB, free: 6.859 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002871/0.3747, allocations: 87.42 kB / 462 MB, free: 6.773 MB / 366.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3747, allocations: 0 / 462 MB, free: 6.773 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0382/0.4129, allocations: 8.886 MB / 470.8 MB, free: 14.01 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.99/12.4, allocations: 8.062 kB / 470.8 MB, free: 14 MB / 382.1 MB " [Timeout remaining time 647] (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: 15.166599789001339]