Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.001562/0.001562, 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.002494/0.002494, allocations: 209.2 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.456/1.456, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.SubClocked,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00167/0.00167, allocations: 48.06 kB / 377.7 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2551/0.2568, allocations: 53.37 MB / 431.1 MB, free: 6.609 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003837/0.2606, allocations: 2.273 MB / 433.3 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001523/0.2621, allocations: 0.7949 MB / 434.1 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001303/0.2623, allocations: 4 kB / 434.1 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002712/0.2625, allocations: 67.55 kB / 434.2 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002067/0.2627, allocations: 55.5 kB / 434.3 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005053/0.2632, allocations: 183.5 kB / 434.4 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004036/0.2636, allocations: 379.6 kB / 434.8 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001711/0.2638, allocations: 70.03 kB / 434.9 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002838/0.2641, allocations: 175.4 kB / 435 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002302/0.2643, allocations: 163.3 kB / 435.2 MB, free: 2.453 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.727e-05/0.2644, allocations: 36 kB / 435.2 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.892e-05/0.2644, allocations: 36 kB / 435.3 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001142/0.2646, allocations: 95.72 kB / 435.4 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001224/0.2647, allocations: 127.4 kB / 435.5 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003923/0.2651, allocations: 350.5 kB / 435.8 MB, free: 1.82 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.2651, allocations: 0 / 435.8 MB, free: 1.82 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2651, allocations: 0 / 435.8 MB, free: 1.82 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.092e-06/0.2651, allocations: 0 / 435.8 MB, free: 1.82 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001187/0.2663, allocations: 0.5522 MB / 436.4 MB, free: 1.238 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.2663, allocations: 12.03 kB / 436.4 MB, free: 1.227 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.072e-05/0.2664, allocations: 70.72 kB / 436.5 MB, free: 1.148 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.118e-05/0.2665, allocations: 40.7 kB / 436.5 MB, free: 1.109 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004418/0.2669, allocations: 218.5 kB / 436.7 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003133/0.2672, allocations: 347.9 kB / 437.1 MB, free: 468 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.777e-05/0.2673, allocations: 28.38 kB / 437.1 MB, free: 440 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001247/0.2685, allocations: 0.5698 MB / 437.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.061e-05/0.2685, allocations: 4 kB / 437.7 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.325e-05/0.2686, allocations: 12 kB / 437.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.2686, allocations: 4 kB / 437.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001436/0.27, allocations: 0.5159 MB / 438.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001568/0.2716, allocations: 0.8946 MB / 439.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00148/0.2731, allocations: 474.4 kB / 439.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006674/0.2737, allocations: 241 kB / 439.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.706e-05/0.2738, allocations: 12 kB / 439.8 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.255e-05/0.2738, allocations: 46.59 kB / 439.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.265e-06/0.2738, allocations: 0 / 439.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.03813/0.3119, allocations: 5.741 MB / 445.6 MB, free: 7.777 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001161/0.3121, allocations: 152.9 kB / 445.7 MB, free: 7.598 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002377/0.3123, allocations: 212.3 kB / 445.9 MB, free: 7.379 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.158e-05/0.3124, allocations: 37.7 kB / 446 MB, free: 7.336 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.3125, allocations: 149.7 kB / 446.1 MB, free: 7.184 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002009/0.3127, allocations: 202.3 kB / 446.3 MB, free: 6.984 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002791/0.313, allocations: 114.7 kB / 446.4 MB, free: 6.867 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.3131, allocations: 342.8 kB / 446.8 MB, free: 6.523 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001693/0.3148, allocations: 0.6227 MB / 447.4 MB, free: 5.898 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00183/0.3166, allocations: 0.8042 MB / 448.2 MB, free: 5.016 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003236/0.3199, allocations: 1.264 MB / 449.5 MB, free: 3.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.3199, allocations: 0 / 449.5 MB, free: 3.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003724/0.3236, allocations: 1.411 MB / 450.9 MB, free: 2.258 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.3236, allocations: 8 kB / 450.9 MB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.331e-05/0.3236, allocations: 8 kB / 450.9 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.238e-05/0.3237, allocations: 8 kB / 450.9 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001326/0.325, allocations: 207.7 kB / 451.1 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.062e-05/0.325, allocations: 19.88 kB / 451.1 MB, free: 2.012 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009444/0.3259, allocations: 103.8 kB / 451.2 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.697e-05/0.326, allocations: 24 kB / 451.2 MB, free: 1.887 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 84 * 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.0003434/0.3264, allocations: 177.6 kB / 451.4 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003152/0.3267, allocations: 153.8 kB / 451.6 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001665/0.3268, allocations: 67.3 kB / 451.6 MB, free: 1.484 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.676e-06/0.3269, allocations: 8.094 kB / 451.6 MB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.328e-06/0.3269, allocations: 7.875 kB / 451.6 MB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.316e-06/0.3269, allocations: 3.984 kB / 451.7 MB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00491/0.3318, allocations: 1.964 MB / 453.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.497e-05/0.3318, allocations: 8 kB / 453.6 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007651/0.3326, allocations: 188.5 kB / 453.8 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.67e-05/0.3326, allocations: 19.94 kB / 453.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.309e-05/0.3326, allocations: 24 kB / 453.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.042e-05/0.3326, allocations: 19.92 kB / 453.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-05/0.3327, allocations: 15.94 kB / 453.9 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003471/0.3361, allocations: 1.573 MB / 455.5 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002241/0.3364, allocations: 91.8 kB / 455.5 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.658e-05/0.3364, allocations: 31.98 kB / 455.6 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006031/0.337, allocations: 71.92 kB / 455.7 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000202/0.3372, allocations: 107.6 kB / 455.8 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.832e-05/0.3373, allocations: 28 kB / 455.8 MB, free: 13.01 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001447/0.3374, allocations: 148.1 kB / 455.9 MB, free: 12.86 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3374, allocations: 3.938 kB / 455.9 MB, free: 12.86 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006696/0.3381, allocations: 120.1 kB / 456 MB, free: 12.74 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.003707/0.3418, allocations: 2.153 MB / 458.2 MB, free: 10.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00288/0.3447, allocations: 1.031 MB / 459.2 MB, free: 9.395 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.041e-05/0.3447, allocations: 4.094 kB / 459.2 MB, free: 9.391 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001045/0.3457, allocations: 354 kB / 459.6 MB, free: 9.047 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009182/0.3467, allocations: 126.2 kB / 459.7 MB, free: 8.926 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01397/0.3606, allocations: 6.835 MB / 466.5 MB, free: 1.598 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000264/0.3609, allocations: 207.3 kB / 466.7 MB, free: 1.371 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005128/0.3614, allocations: 99.3 kB / 466.8 MB, free: 1.273 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003794/0.3618, allocations: 119.4 kB / 467 MB, free: 1.156 MB / 366.1 MB Notification: Performance of SimCode: time 8.61e-07/0.3618, allocations: 0 / 467 MB, free: 1.156 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05955/0.4213, allocations: 12.66 MB / 479.6 MB, free: 4.703 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/12.01, allocations: 15.59 kB / 479.6 MB, free: 4.691 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000499563 Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.SubClocked_res.csv. Warning: Get data of variable load.phi from file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv failed! Error: Could not read variable PI.x in file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv. Warning: Get data of variable PI.x from file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv. Warning: Get data of variable PI.y from file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:time,load.w,speed.flange.phi [Calling sys.exit(0), Time elapsed: 14.613772624637932]