Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001474/0.001474, allocations: 112.2 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001692/0.001692, allocations: 187.3 kB / 23.72 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.532/1.532, allocations: 225.6 MB / 252.5 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001576/0.001576, allocations: 47.92 kB / 370.4 MB, free: 9.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.2944, allocations: 52.18 MB / 422.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003842/0.2983, allocations: 2.174 MB / 424.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001248/0.2995, allocations: 0.6588 MB / 425.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001159/0.2997, allocations: 7.938 kB / 425.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002805/0.2999, allocations: 43.64 kB / 425.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001524/0.3001, allocations: 51.62 kB / 425.5 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003554/0.3004, allocations: 127.8 kB / 425.7 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004127/0.3009, allocations: 339.2 kB / 426 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001647/0.301, allocations: 48.56 kB / 426 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002232/0.3012, allocations: 151.5 kB / 426.2 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002479/0.3015, allocations: 151.4 kB / 426.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.381e-05/0.3015, allocations: 28 kB / 426.4 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.751e-05/0.3016, allocations: 32 kB / 426.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001166/0.3017, allocations: 91.73 kB / 426.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001307/0.3018, allocations: 127.4 kB / 426.6 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003764/0.3022, allocations: 295.2 kB / 426.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.3022, allocations: 0 / 426.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3022, allocations: 0 / 426.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.194e-05/0.3022, allocations: 0 / 426.9 MB, free: 10.32 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.001187/0.3034, allocations: 0.5012 MB / 427.4 MB, free: 9.789 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.3035, allocations: 12.03 kB / 427.4 MB, free: 9.777 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.632e-05/0.3035, allocations: 66.72 kB / 427.5 MB, free: 9.703 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.803e-05/0.3036, allocations: 32.75 kB / 427.5 MB, free: 9.672 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003811/0.304, allocations: 194.6 kB / 427.7 MB, free: 9.457 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003292/0.3043, allocations: 347.5 kB / 428 MB, free: 9.051 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.776e-05/0.3044, allocations: 24 kB / 428.1 MB, free: 9.027 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008498/0.3052, allocations: 366.6 kB / 428.4 MB, free: 8.656 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.647e-05/0.3052, allocations: 0 / 428.4 MB, free: 8.656 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.118e-05/0.3053, allocations: 8 kB / 428.4 MB, free: 8.648 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.3053, allocations: 15.98 kB / 428.4 MB, free: 8.633 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001338/0.3066, allocations: 497.6 kB / 428.9 MB, free: 8.148 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001814/0.3084, allocations: 0.942 MB / 429.9 MB, free: 7.148 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001196/0.3096, allocations: 319.1 kB / 430.2 MB, free: 6.828 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004999/0.3101, allocations: 177.1 kB / 430.4 MB, free: 6.652 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.368e-05/0.3102, allocations: 4.234 kB / 430.4 MB, free: 6.648 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.892e-05/0.3102, allocations: 34.8 kB / 430.4 MB, free: 6.605 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.693e-06/0.3102, allocations: 0 / 430.4 MB, free: 6.605 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.02715/0.3374, allocations: 5.656 MB / 436.1 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.296e-05/0.3374, allocations: 55.84 kB / 436.1 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003002/0.3377, allocations: 210.7 kB / 436.3 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.951e-05/0.3378, allocations: 33.7 kB / 436.3 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001433/0.3379, allocations: 153 kB / 436.5 MB, free: 428 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002094/0.3381, allocations: 186.4 kB / 436.7 MB, free: 240 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002295/0.3383, allocations: 86.34 kB / 436.8 MB, free: 148 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002064/0.3386, allocations: 338.8 kB / 437.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001368/0.3399, allocations: 473 kB / 437.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001357/0.3413, allocations: 0.5186 MB / 438.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002339/0.3436, allocations: 0.8023 MB / 438.9 MB, free: 14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.3436, allocations: 0 / 438.9 MB, free: 14 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002869/0.3465, allocations: 0.9892 MB / 439.9 MB, free: 13 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.535e-05/0.3465, allocations: 7.938 kB / 439.9 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.3465, allocations: 0 / 439.9 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/0.3465, allocations: 4 kB / 439.9 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00101/0.3476, allocations: 167.8 kB / 440 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.483e-05/0.3476, allocations: 11.88 kB / 440.1 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006686/0.3482, allocations: 87.88 kB / 440.1 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.255e-05/0.3483, allocations: 16 kB / 440.2 MB, free: 12.71 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.0002491/0.3485, allocations: 154.8 kB / 440.3 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.828e-05/0.3486, allocations: 35.75 kB / 440.3 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001303/0.3488, allocations: 47.31 kB / 440.4 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.3488, allocations: 4 kB / 440.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.063e-05/0.3488, allocations: 4 kB / 440.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.3488, allocations: 3.984 kB / 440.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004238/0.353, allocations: 1.841 MB / 442.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.14e-05/0.353, allocations: 9 kB / 442.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006709/0.3537, allocations: 147.8 kB / 442.4 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.008e-05/0.3537, allocations: 15.92 kB / 442.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.704e-05/0.3538, allocations: 20 kB / 442.4 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.367e-05/0.3538, allocations: 15.94 kB / 442.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.588e-06/0.3538, allocations: 11.94 kB / 442.5 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002874/0.3567, allocations: 1.221 MB / 443.7 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000173/0.3568, allocations: 67.75 kB / 443.7 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.905e-05/0.3569, allocations: 23.98 kB / 443.8 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005184/0.3574, allocations: 75.92 kB / 443.8 MB, free: 8.727 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001943/0.3576, allocations: 83.7 kB / 443.9 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.105e-05/0.3577, allocations: 31.94 kB / 444 MB, free: 8.613 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001933/0.3579, allocations: 151.1 kB / 444.1 MB, free: 8.465 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3579, allocations: 0 / 444.1 MB, free: 8.465 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005134/0.3584, allocations: 100 kB / 444.2 MB, free: 8.367 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.003277/0.3616, allocations: 1.789 MB / 446 MB, free: 6.453 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002376/0.364, allocations: 0.7824 MB / 446.8 MB, free: 5.668 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.364, allocations: 0 / 446.8 MB, free: 5.668 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009364/0.365, allocations: 317.7 kB / 447.1 MB, free: 5.359 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006267/0.3656, allocations: 55.97 kB / 447.1 MB, free: 5.305 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01096/0.3765, allocations: 5.253 MB / 452.4 MB, free: 15.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004519/0.377, allocations: 0.784 MB / 453.2 MB, free: 14.92 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003961/0.3774, allocations: 83.19 kB / 453.2 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002886/0.3777, allocations: 95.41 kB / 453.3 MB, free: 14.75 MB / 366.1 MB Notification: Performance of SimCode: time 1.042e-06/0.3777, allocations: 0 / 453.3 MB, free: 14.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04223/0.4199, allocations: 8.878 MB / 462.2 MB, free: 6.035 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.25/12.67, allocations: 11.36 kB / 462.2 MB, free: 6.027 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv. Warning: Get data of variable load.phi from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.513169095000194]