Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001371/0.001371, allocations: 115.6 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001497/0.001497, allocations: 213.4 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.528/1.528, allocations: 230.6 MB / 257.5 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001615/0.001615, allocations: 43.92 kB / 377.7 MB, free: 3.188 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2841/0.2857, allocations: 53.37 MB / 431.1 MB, free: 6.906 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.00382/0.2895, allocations: 2.182 MB / 433.3 MB, free: 4.719 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001384/0.2909, allocations: 0.6899 MB / 434 MB, free: 4.023 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001126/0.291, allocations: 3.938 kB / 434 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003091/0.2913, allocations: 47.64 kB / 434 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001495/0.2915, allocations: 55.62 kB / 434.1 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003581/0.2919, allocations: 119.8 kB / 434.2 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000423/0.2923, allocations: 351.1 kB / 434.6 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001683/0.2924, allocations: 54.16 kB / 434.6 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003027/0.2927, allocations: 151.5 kB / 434.8 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002629/0.293, allocations: 163.4 kB / 434.9 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.82e-05/0.2931, allocations: 28 kB / 434.9 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.594e-05/0.2931, allocations: 32 kB / 435 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001019/0.2932, allocations: 83.78 kB / 435.1 MB, free: 2.953 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001298/0.2933, allocations: 131.4 kB / 435.2 MB, free: 2.824 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003405/0.2937, allocations: 278.8 kB / 435.5 MB, free: 2.551 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.2937, allocations: 0 / 435.5 MB, free: 2.551 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2937, allocations: 0 / 435.5 MB, free: 2.551 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.2937, allocations: 4 kB / 435.5 MB, free: 2.547 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.001117/0.2948, allocations: 0.5127 MB / 436 MB, free: 2.004 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.2948, allocations: 8.031 kB / 436 MB, free: 1.996 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.368e-05/0.2949, allocations: 66.73 kB / 436 MB, free: 1.922 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.289e-05/0.295, allocations: 32.8 kB / 436.1 MB, free: 1.891 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003504/0.2953, allocations: 186.7 kB / 436.3 MB, free: 1.684 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003338/0.2957, allocations: 343.5 kB / 436.6 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.097e-05/0.2957, allocations: 27.98 kB / 436.6 MB, free: 1.254 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008759/0.2966, allocations: 366.6 kB / 437 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.133e-05/0.2966, allocations: 3.953 kB / 437 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.327e-05/0.2967, allocations: 12 kB / 437 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.2967, allocations: 7.938 kB / 437 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001288/0.298, allocations: 497.6 kB / 437.5 MB, free: 380 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001751/0.2997, allocations: 0.946 MB / 438.4 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001154/0.3009, allocations: 332.7 kB / 438.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004801/0.3013, allocations: 161.2 kB / 438.9 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.613e-05/0.3014, allocations: 240 / 438.9 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.91e-05/0.3014, allocations: 34.8 kB / 438.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.132e-06/0.3014, allocations: 4 kB / 439 MB, free: 14.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.02647/0.3279, allocations: 5.652 MB / 444.6 MB, free: 9.121 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.179e-05/0.3279, allocations: 59.84 kB / 444.7 MB, free: 9.051 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002645/0.3282, allocations: 195.7 kB / 444.9 MB, free: 8.852 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.635e-05/0.3283, allocations: 37.7 kB / 444.9 MB, free: 8.809 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001183/0.3284, allocations: 157 kB / 445 MB, free: 8.652 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001787/0.3286, allocations: 186.4 kB / 445.2 MB, free: 8.469 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002073/0.3288, allocations: 86.3 kB / 445.3 MB, free: 8.379 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001774/0.3289, allocations: 338.8 kB / 445.6 MB, free: 8.039 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001299/0.3302, allocations: 469 kB / 446.1 MB, free: 7.578 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001357/0.3316, allocations: 0.5186 MB / 446.6 MB, free: 7.051 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002301/0.3339, allocations: 0.8023 MB / 447.4 MB, free: 6.234 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3339, allocations: 0 / 447.4 MB, free: 6.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002781/0.3367, allocations: 0.9813 MB / 448.4 MB, free: 5.246 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.528e-05/0.3367, allocations: 15.88 kB / 448.4 MB, free: 5.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.385e-06/0.3367, allocations: 128 / 448.4 MB, free: 5.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.182e-05/0.3367, allocations: 11.98 kB / 448.4 MB, free: 5.219 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009644/0.3377, allocations: 167.8 kB / 448.6 MB, free: 5.055 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.169e-05/0.3377, allocations: 7.938 kB / 448.6 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006554/0.3384, allocations: 79.89 kB / 448.7 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.548e-05/0.3384, allocations: 23.98 kB / 448.7 MB, free: 4.945 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.0002486/0.3387, allocations: 161.7 kB / 448.9 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.63e-05/0.3388, allocations: 31.75 kB / 448.9 MB, free: 4.746 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001309/0.3389, allocations: 51.3 kB / 448.9 MB, free: 4.695 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.3389, allocations: 4 kB / 448.9 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.026e-06/0.3389, allocations: 0 / 448.9 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.3389, allocations: 3.984 kB / 448.9 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004236/0.3431, allocations: 1.853 MB / 450.8 MB, free: 2.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.148e-05/0.3432, allocations: 8 kB / 450.8 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006944/0.3439, allocations: 143.8 kB / 451 MB, free: 2.531 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.789e-05/0.3439, allocations: 15.94 kB / 451 MB, free: 2.516 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.337e-05/0.3439, allocations: 20 kB / 451 MB, free: 2.496 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.546e-05/0.3439, allocations: 19.92 kB / 451 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.347e-05/0.3439, allocations: 11.94 kB / 451 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002903/0.3468, allocations: 1.221 MB / 452.2 MB, free: 1.113 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002131/0.3471, allocations: 71.78 kB / 452.3 MB, free: 1.043 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.282e-05/0.3471, allocations: 20 kB / 452.3 MB, free: 1.023 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005258/0.3477, allocations: 79.84 kB / 452.4 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000207/0.3479, allocations: 87.66 kB / 452.5 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.851e-05/0.3479, allocations: 27.98 kB / 452.5 MB, free: 0.832 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002079/0.3481, allocations: 147.5 kB / 452.7 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3481, allocations: 0 / 452.7 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005225/0.3486, allocations: 96 kB / 452.8 MB, free: 0.5938 MB / 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.003276/0.3519, allocations: 1.781 MB / 454.5 MB, free: 14.68 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002327/0.3542, allocations: 0.7824 MB / 455.3 MB, free: 13.9 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.936e-06/0.3543, allocations: 4 kB / 455.3 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009444/0.3552, allocations: 317 kB / 455.6 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006752/0.3559, allocations: 52.72 kB / 455.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01096/0.3668, allocations: 5.26 MB / 460.9 MB, free: 7.953 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004627/0.3673, allocations: 0.7801 MB / 461.7 MB, free: 7.148 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003995/0.3677, allocations: 83.19 kB / 461.8 MB, free: 7.07 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002826/0.368, allocations: 95.41 kB / 461.9 MB, free: 6.977 MB / 366.1 MB Notification: Performance of SimCode: time 1.303e-06/0.368, allocations: 0 / 461.9 MB, free: 6.977 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03859/0.4066, allocations: 8.894 MB / 470.8 MB, free: 14.24 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.25/12.66, allocations: 3.859 kB / 470.8 MB, free: 14.23 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv. Warning: Get data of variable load.phi from file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv. Warning: Get data of variable PI.y from file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.417967654000677]