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.001276/0.001276, allocations: 107.1 kB / 20.44 MB, free: 1.355 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.001438/0.001438, allocations: 213.4 kB / 23.73 MB, free: 4.535 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.423/1.423, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.001521/0.001521, allocations: 47.92 kB / 377.7 MB, free: 3.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2436/0.2451, allocations: 53.37 MB / 431.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003749/0.2489, allocations: 2.269 MB / 433.3 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001626/0.2505, allocations: 0.8027 MB / 434.1 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001482/0.2507, allocations: 7.938 kB / 434.1 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002697/0.2509, allocations: 55.56 kB / 434.2 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001996/0.2511, allocations: 55.56 kB / 434.3 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005001/0.2516, allocations: 187.6 kB / 434.4 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004373/0.2521, allocations: 383.6 kB / 434.8 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001827/0.2523, allocations: 68.36 kB / 434.9 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002929/0.2525, allocations: 175.4 kB / 435.1 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002465/0.2528, allocations: 179.3 kB / 435.2 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.575e-05/0.2529, allocations: 35.94 kB / 435.3 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.023e-05/0.2529, allocations: 36 kB / 435.3 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001164/0.253, allocations: 103.7 kB / 435.4 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001276/0.2532, allocations: 119.4 kB / 435.5 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004/0.2536, allocations: 350.9 kB / 435.9 MB, free: 1.844 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.2536, allocations: 4 kB / 435.9 MB, free: 1.84 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2536, allocations: 4 kB / 435.9 MB, free: 1.836 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.2536, allocations: 0 / 435.9 MB, free: 1.836 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.001324/0.2549, allocations: 0.5483 MB / 436.4 MB, free: 1.258 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.2549, allocations: 12.03 kB / 436.4 MB, free: 1.246 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.967e-05/0.255, allocations: 70.72 kB / 436.5 MB, free: 1.168 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.823e-05/0.2551, allocations: 44.7 kB / 436.5 MB, free: 1.125 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00043/0.2555, allocations: 210.5 kB / 436.7 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003355/0.2559, allocations: 351.9 kB / 437.1 MB, free: 488 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.46e-05/0.2559, allocations: 28.38 kB / 437.1 MB, free: 460 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001277/0.2572, allocations: 0.5661 MB / 437.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.9e-05/0.2572, allocations: 4 kB / 437.7 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.776e-05/0.2573, allocations: 12 kB / 437.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.2573, allocations: 11.83 kB / 437.7 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00148/0.2587, allocations: 0.5158 MB / 438.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001597/0.2603, allocations: 0.8869 MB / 439.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001536/0.2619, allocations: 474.4 kB / 439.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006832/0.2626, allocations: 243.3 kB / 439.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.245e-05/0.2626, allocations: 11.94 kB / 439.8 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.943e-05/0.2627, allocations: 38.56 kB / 439.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.944e-06/0.2627, allocations: 0 / 439.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.03747/0.3001, allocations: 5.751 MB / 445.6 MB, free: 7.797 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001196/0.3003, allocations: 156.9 kB / 445.8 MB, free: 7.613 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002387/0.3005, allocations: 208.3 kB / 446 MB, free: 7.398 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.02e-05/0.3006, allocations: 33.7 kB / 446 MB, free: 7.359 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001019/0.3007, allocations: 145.8 kB / 446.1 MB, free: 7.211 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002122/0.3009, allocations: 206.3 kB / 446.3 MB, free: 7.008 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002855/0.3012, allocations: 110.7 kB / 446.5 MB, free: 6.895 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.3013, allocations: 350.8 kB / 446.8 MB, free: 6.543 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001697/0.303, allocations: 0.6226 MB / 447.4 MB, free: 5.918 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001832/0.3049, allocations: 0.8004 MB / 448.2 MB, free: 5.043 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003286/0.3081, allocations: 1.268 MB / 449.5 MB, free: 3.703 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.805e-06/0.3082, allocations: 4 kB / 449.5 MB, free: 3.699 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003816/0.312, allocations: 1.403 MB / 450.9 MB, free: 2.285 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.457e-05/0.312, allocations: 11.98 kB / 450.9 MB, free: 2.273 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.192e-05/0.312, allocations: 8.312 kB / 450.9 MB, free: 2.266 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.326e-05/0.312, allocations: 8 kB / 450.9 MB, free: 2.258 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00133/0.3134, allocations: 211.6 kB / 451.1 MB, free: 2.051 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.665e-05/0.3134, allocations: 11.94 kB / 451.1 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009397/0.3143, allocations: 103.8 kB / 451.2 MB, free: 1.938 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.569e-05/0.3144, allocations: 32.31 kB / 451.3 MB, free: 1.906 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.0003458/0.3148, allocations: 181.6 kB / 451.5 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003238/0.3151, allocations: 153.8 kB / 451.6 MB, free: 1.562 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000167/0.3153, allocations: 63.39 kB / 451.7 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.277e-06/0.3153, allocations: 11.94 kB / 451.7 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.103e-05/0.3153, allocations: 3.938 kB / 451.7 MB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.017e-05/0.3153, allocations: 7.984 kB / 451.7 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005129/0.3204, allocations: 1.957 MB / 453.6 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.678e-05/0.3204, allocations: 16.06 kB / 453.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007963/0.3212, allocations: 183.7 kB / 453.8 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.063e-05/0.3212, allocations: 15.94 kB / 453.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.72e-05/0.3213, allocations: 24 kB / 453.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.427e-05/0.3213, allocations: 23.92 kB / 453.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.374e-05/0.3213, allocations: 11.94 kB / 453.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003503/0.3248, allocations: 1.577 MB / 455.5 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002441/0.3251, allocations: 91.62 kB / 455.6 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.191e-05/0.3252, allocations: 31.92 kB / 455.6 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005909/0.3258, allocations: 71.92 kB / 455.7 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002078/0.326, allocations: 103.7 kB / 455.8 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.469e-05/0.326, allocations: 35.98 kB / 455.8 MB, free: 13.02 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001957/0.3262, allocations: 144.1 kB / 456 MB, free: 12.88 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3262, allocations: 0 / 456 MB, free: 12.88 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006606/0.3269, allocations: 124 kB / 456.1 MB, free: 12.76 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.003844/0.3307, allocations: 2.141 MB / 458.2 MB, free: 10.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002976/0.3337, allocations: 1.043 MB / 459.3 MB, free: 9.414 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.247e-06/0.3337, allocations: 3.938 kB / 459.3 MB, free: 9.41 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001051/0.3348, allocations: 342.1 kB / 459.6 MB, free: 9.078 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009157/0.3357, allocations: 142 kB / 459.7 MB, free: 8.941 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01387/0.3495, allocations: 6.83 MB / 466.6 MB, free: 1.617 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002547/0.3498, allocations: 211.3 kB / 466.8 MB, free: 1.387 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000473/0.3503, allocations: 91.31 kB / 466.9 MB, free: 1.297 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003637/0.3506, allocations: 115.4 kB / 467 MB, free: 1.184 MB / 366.1 MB Notification: Performance of SimCode: time 9.72e-07/0.3506, allocations: 4 kB / 467 MB, free: 1.18 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04408/0.3947, allocations: 12.86 MB / 479.8 MB, free: 4.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.71, allocations: 7.984 kB / 479.9 MB, free: 4.512 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.340009663981618]