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.001812/0.001812, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.00187/0.00187, allocations: 206 kB / 23.73 MB, free: 4.523 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.421/1.421, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.00156/0.00156, allocations: 47.92 kB / 377.7 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2483/0.2498, allocations: 53.36 MB / 431.1 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003729/0.2535, allocations: 2.086 MB / 433.1 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001335/0.2549, allocations: 0.6471 MB / 433.8 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001272/0.255, allocations: 0 / 433.8 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002959/0.2553, allocations: 51.62 kB / 433.8 MB, free: 3.883 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001597/0.2555, allocations: 51.62 kB / 433.9 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003828/0.2558, allocations: 127.8 kB / 434 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004059/0.2562, allocations: 335.2 kB / 434.3 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001791/0.2564, allocations: 58.2 kB / 434.4 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003026/0.2567, allocations: 151.5 kB / 434.6 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002442/0.257, allocations: 159.4 kB / 434.7 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.771e-05/0.257, allocations: 36 kB / 434.7 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.996e-05/0.2571, allocations: 28 kB / 434.8 MB, free: 2.953 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001131/0.2572, allocations: 87.73 kB / 434.9 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001196/0.2573, allocations: 103.6 kB / 435 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003867/0.2577, allocations: 298.8 kB / 435.2 MB, free: 2.473 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.2577, allocations: 0 / 435.2 MB, free: 2.473 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2577, allocations: 0 / 435.2 MB, free: 2.473 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.2577, allocations: 0 / 435.2 MB, free: 2.473 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.001186/0.2589, allocations: 0.5165 MB / 435.8 MB, free: 1.926 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.358e-05/0.259, allocations: 8.031 kB / 435.8 MB, free: 1.918 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.566e-05/0.259, allocations: 70.72 kB / 435.8 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.229e-05/0.2591, allocations: 28.8 kB / 435.9 MB, free: 1.812 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000437/0.2595, allocations: 190.7 kB / 436.1 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003988/0.2599, allocations: 351.5 kB / 436.4 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.15e-05/0.26, allocations: 27.94 kB / 436.4 MB, free: 1.164 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009252/0.2609, allocations: 366.6 kB / 436.8 MB, free: 0.793 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.316e-05/0.2609, allocations: 7.953 kB / 436.8 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.893e-05/0.261, allocations: 4 kB / 436.8 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.261, allocations: 8 kB / 436.8 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001458/0.2624, allocations: 0.4976 MB / 437.3 MB, free: 280 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001796/0.2642, allocations: 0.8914 MB / 438.2 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001044/0.2653, allocations: 310.8 kB / 438.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005391/0.2658, allocations: 169.2 kB / 438.7 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.59e-05/0.2659, allocations: 15.97 kB / 438.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.731e-05/0.2659, allocations: 30.56 kB / 438.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.894e-06/0.2659, allocations: 4 kB / 438.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=53): time 0.02623/0.2921, allocations: 5.667 MB / 444.4 MB, free: 9.062 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.848e-05/0.2922, allocations: 55.84 kB / 444.4 MB, free: 8.996 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002645/0.2924, allocations: 210.8 kB / 444.6 MB, free: 8.781 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.38e-05/0.2925, allocations: 37.7 kB / 444.7 MB, free: 8.738 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001029/0.2926, allocations: 149 kB / 444.8 MB, free: 8.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00017/0.2928, allocations: 186.4 kB / 445 MB, free: 8.406 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002045/0.293, allocations: 86.34 kB / 445.1 MB, free: 8.316 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.2931, allocations: 342.8 kB / 445.4 MB, free: 7.973 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001379/0.2945, allocations: 476.9 kB / 445.9 MB, free: 7.504 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00141/0.2959, allocations: 0.5225 MB / 446.4 MB, free: 6.973 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002451/0.2984, allocations: 0.8101 MB / 447.2 MB, free: 6.148 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2984, allocations: 0 / 447.2 MB, free: 6.148 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002871/0.3013, allocations: 1.005 MB / 448.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.885e-05/0.3013, allocations: 4 kB / 448.2 MB, free: 5.133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.348e-05/0.3013, allocations: 11.92 kB / 448.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/0.3013, allocations: 4 kB / 448.2 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009626/0.3023, allocations: 163.8 kB / 448.4 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.3023, allocations: 8.016 kB / 448.4 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006789/0.303, allocations: 91.81 kB / 448.5 MB, free: 4.859 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.316e-05/0.303, allocations: 16 kB / 448.5 MB, free: 4.844 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.000219/0.3032, allocations: 157.8 kB / 448.7 MB, free: 4.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.503e-05/0.3033, allocations: 35.78 kB / 448.7 MB, free: 4.645 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001051/0.3034, allocations: 51.25 kB / 448.8 MB, free: 4.594 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.3034, allocations: 11.94 kB / 448.8 MB, free: 4.582 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.3034, allocations: 0 / 448.8 MB, free: 4.582 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.3035, allocations: 3.984 kB / 448.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004211/0.3077, allocations: 1.747 MB / 450.5 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.007e-05/0.3077, allocations: 8 kB / 450.5 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006418/0.3083, allocations: 147.9 kB / 450.7 MB, free: 2.523 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.183e-05/0.3083, allocations: 12 kB / 450.7 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.608e-05/0.3084, allocations: 27.92 kB / 450.7 MB, free: 2.484 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.399e-05/0.3084, allocations: 15.94 kB / 450.7 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.398e-06/0.3084, allocations: 11.94 kB / 450.7 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002915/0.3113, allocations: 1.246 MB / 452 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001768/0.3115, allocations: 75.78 kB / 452.1 MB, free: 1.004 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.093e-05/0.3116, allocations: 16 kB / 452.1 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005268/0.3121, allocations: 75.91 kB / 452.1 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001827/0.3123, allocations: 87.7 kB / 452.2 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.809e-05/0.3123, allocations: 24 kB / 452.3 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001769/0.3125, allocations: 152.2 kB / 452.4 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3125, allocations: 4 kB / 452.4 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004779/0.313, allocations: 100 kB / 452.5 MB, free: 0.5547 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: 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.003226/0.3162, allocations: 1.798 MB / 454.3 MB, free: 14.62 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002428/0.3186, allocations: 0.7981 MB / 455.1 MB, free: 13.83 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.3186, allocations: 0 / 455.1 MB, free: 13.83 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001007/0.3196, allocations: 325.3 kB / 455.4 MB, free: 13.51 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006054/0.3202, allocations: 59.34 kB / 455.5 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01145/0.3317, allocations: 5.305 MB / 460.8 MB, free: 7.828 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002056/0.3319, allocations: 176.2 kB / 461 MB, free: 7.641 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000394/0.3323, allocations: 82.88 kB / 461 MB, free: 7.562 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000276/0.3326, allocations: 91.41 kB / 461.1 MB, free: 7.473 MB / 366.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3326, allocations: 4 kB / 461.1 MB, free: 7.469 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03982/0.3724, allocations: 9.561 MB / 470.7 MB, free: 14.11 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.48, allocations: 7.875 kB / 470.7 MB, free: 14.1 MB / 382.1 MB " [Timeout remaining time 648] (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: 14.050045552983647]