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.001706/0.001706, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002065/0.002065, allocations: 207.7 kB / 23.73 MB, free: 4.387 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.474/1.474, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.001667/0.001667, allocations: 51.92 kB / 377.7 MB, free: 3.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.2641, allocations: 53.36 MB / 431.1 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003713/0.2678, allocations: 2.086 MB / 433.1 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001298/0.2691, allocations: 0.6549 MB / 433.8 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001161/0.2692, allocations: 7.938 kB / 433.8 MB, free: 3.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002706/0.2695, allocations: 35.7 kB / 433.8 MB, free: 3.875 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001544/0.2696, allocations: 55.56 kB / 433.9 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003792/0.27, allocations: 127.8 kB / 434 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003824/0.2704, allocations: 339.2 kB / 434.4 MB, free: 3.363 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001594/0.2705, allocations: 54.2 kB / 434.4 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002496/0.2708, allocations: 139.6 kB / 434.5 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002135/0.271, allocations: 147.4 kB / 434.7 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.548e-05/0.2711, allocations: 32 kB / 434.7 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.189e-05/0.2711, allocations: 28 kB / 434.7 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001091/0.2712, allocations: 99.64 kB / 434.8 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001051/0.2713, allocations: 103.6 kB / 434.9 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003294/0.2717, allocations: 290.9 kB / 435.2 MB, free: 2.484 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.2717, allocations: 0 / 435.2 MB, free: 2.484 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2717, allocations: 0 / 435.2 MB, free: 2.484 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.2717, allocations: 0 / 435.2 MB, free: 2.484 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.001135/0.2728, allocations: 0.5166 MB / 435.7 MB, free: 1.938 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/0.2729, allocations: 12.03 kB / 435.8 MB, free: 1.926 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.413e-05/0.2729, allocations: 62.67 kB / 435.8 MB, free: 1.855 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.699e-05/0.273, allocations: 28.8 kB / 435.8 MB, free: 1.828 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000374/0.2734, allocations: 194.7 kB / 436 MB, free: 1.613 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003323/0.2737, allocations: 351.5 kB / 436.4 MB, free: 1.203 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.441e-05/0.2738, allocations: 24 kB / 436.4 MB, free: 1.18 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008806/0.2746, allocations: 366.6 kB / 436.8 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.679e-05/0.2747, allocations: 11.83 kB / 436.8 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.894e-05/0.2747, allocations: 8 kB / 436.8 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.235e-05/0.2747, allocations: 11.98 kB / 436.8 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001398/0.2761, allocations: 497.6 kB / 437.3 MB, free: 296 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001764/0.2779, allocations: 0.8951 MB / 438.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001048/0.2789, allocations: 311 kB / 438.5 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000542/0.2794, allocations: 165.2 kB / 438.6 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.363e-05/0.2795, allocations: 8 kB / 438.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.905e-05/0.2795, allocations: 34.56 kB / 438.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 2.124e-06/0.2795, allocations: 0 / 438.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=53): time 0.02705/0.3066, allocations: 5.677 MB / 444.4 MB, free: 9.078 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.371e-05/0.3066, allocations: 63.77 kB / 444.4 MB, free: 9.004 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002727/0.3069, allocations: 214.9 kB / 444.6 MB, free: 8.785 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.722e-05/0.3069, allocations: 37.7 kB / 444.7 MB, free: 8.742 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001005/0.307, allocations: 145 kB / 444.8 MB, free: 8.598 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001717/0.3072, allocations: 190.4 kB / 445 MB, free: 8.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002058/0.3074, allocations: 90.34 kB / 445.1 MB, free: 8.316 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.3076, allocations: 334.8 kB / 445.4 MB, free: 7.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001351/0.3089, allocations: 477 kB / 445.9 MB, free: 7.512 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0014/0.3103, allocations: 0.5147 MB / 446.4 MB, free: 6.988 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002452/0.3128, allocations: 0.8179 MB / 447.2 MB, free: 6.156 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.3128, allocations: 0 / 447.2 MB, free: 6.156 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00292/0.3157, allocations: 1.001 MB / 448.2 MB, free: 5.148 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.3157, allocations: 4 kB / 448.2 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.956e-06/0.3157, allocations: 7.938 kB / 448.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.3157, allocations: 4 kB / 448.2 MB, free: 5.133 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009651/0.3167, allocations: 167.7 kB / 448.4 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.142e-05/0.3167, allocations: 8 kB / 448.4 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007476/0.3175, allocations: 87.91 kB / 448.5 MB, free: 4.875 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.361e-05/0.3175, allocations: 16 kB / 448.5 MB, free: 4.859 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.0002334/0.3178, allocations: 165.7 kB / 448.7 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.591e-05/0.3178, allocations: 27.81 kB / 448.7 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001211/0.318, allocations: 51.25 kB / 448.7 MB, free: 4.609 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.318, allocations: 4 kB / 448.7 MB, free: 4.605 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/0.318, allocations: 3.984 kB / 448.7 MB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.318, allocations: 0 / 448.7 MB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004205/0.3222, allocations: 1.747 MB / 450.5 MB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.738e-06/0.3222, allocations: 8 kB / 450.5 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006393/0.3228, allocations: 152.5 kB / 450.6 MB, free: 2.543 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-05/0.3229, allocations: 12 kB / 450.7 MB, free: 2.531 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.014e-05/0.3229, allocations: 23.94 kB / 450.7 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-05/0.3229, allocations: 15.94 kB / 450.7 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.111e-05/0.3229, allocations: 11.94 kB / 450.7 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002936/0.3259, allocations: 1.25 MB / 452 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001821/0.3261, allocations: 67.69 kB / 452 MB, free: 1.031 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.864e-05/0.3261, allocations: 27.98 kB / 452.1 MB, free: 1.004 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005418/0.3267, allocations: 71.92 kB / 452.1 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001916/0.3269, allocations: 91.64 kB / 452.2 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.041e-05/0.3269, allocations: 27.94 kB / 452.2 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001784/0.3271, allocations: 152.3 kB / 452.4 MB, free: 0.668 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3271, allocations: 4 kB / 452.4 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004951/0.3276, allocations: 96 kB / 452.5 MB, free: 0.5703 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.003331/0.3309, allocations: 1.798 MB / 454.3 MB, free: 14.64 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002445/0.3333, allocations: 0.7981 MB / 455.1 MB, free: 13.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.3334, allocations: 0 / 455.1 MB, free: 13.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00102/0.3344, allocations: 325.7 kB / 455.4 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006287/0.335, allocations: 62.48 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.01127/0.3463, allocations: 5.301 MB / 460.8 MB, free: 7.84 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002048/0.3465, allocations: 176.2 kB / 460.9 MB, free: 7.652 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004228/0.3469, allocations: 78.88 kB / 461 MB, free: 7.578 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002859/0.3472, allocations: 99.41 kB / 461.1 MB, free: 7.48 MB / 366.1 MB Notification: Performance of SimCode: time 1.303e-06/0.3472, allocations: 4 kB / 461.1 MB, free: 7.477 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04082/0.388, allocations: 9.408 MB / 470.5 MB, free: 14.27 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.68, allocations: 6.781 kB / 470.5 MB, free: 14.27 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.356704998761415]