Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.001884/0.001884, allocations: 109.5 kB / 20.43 MB, free: 1.457 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.001518/0.001518, allocations: 184.6 kB / 23.72 MB, free: 4.699 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.567/1.567, allocations: 225.6 MB / 252.5 MB, free: 13.02 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.SubClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001581, allocations: 47.92 kB / 370.4 MB, free: 9.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3063/0.3079, allocations: 52.18 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004234/0.3121, allocations: 2.392 MB / 425 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001719/0.3139, allocations: 0.8144 MB / 425.8 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001694/0.314, allocations: 7.938 kB / 425.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003016/0.3143, allocations: 51.58 kB / 425.9 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002218/0.3145, allocations: 67.48 kB / 425.9 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005342/0.3151, allocations: 179.5 kB / 426.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005/0.3156, allocations: 383.6 kB / 426.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001889/0.3158, allocations: 72.34 kB / 426.6 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002733/0.316, allocations: 171.4 kB / 426.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003012/0.3163, allocations: 179.3 kB / 426.9 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.335e-05/0.3164, allocations: 36 kB / 426.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.56e-05/0.3165, allocations: 32 kB / 427 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001228/0.3166, allocations: 99.67 kB / 427.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001565/0.3167, allocations: 155.2 kB / 427.2 MB, free: 9.965 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000447/0.3172, allocations: 327.1 kB / 427.5 MB, free: 9.648 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.87e-06/0.3172, allocations: 7.938 kB / 427.5 MB, free: 9.641 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3172, allocations: 3.938 kB / 427.5 MB, free: 9.637 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.314e-06/0.3172, allocations: 0 / 427.5 MB, free: 9.637 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.001287/0.3185, allocations: 0.5522 MB / 428.1 MB, free: 9.055 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.3185, allocations: 8.031 kB / 428.1 MB, free: 9.047 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.443e-05/0.3186, allocations: 70.72 kB / 428.2 MB, free: 8.969 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.565e-05/0.3187, allocations: 36.75 kB / 428.2 MB, free: 8.934 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004834/0.3192, allocations: 230.4 kB / 428.4 MB, free: 8.684 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003494/0.3195, allocations: 347.9 kB / 428.8 MB, free: 8.273 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.665e-05/0.3196, allocations: 28.38 kB / 428.8 MB, free: 8.246 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001252/0.3209, allocations: 0.5582 MB / 429.4 MB, free: 7.664 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.071e-05/0.3209, allocations: 0 / 429.4 MB, free: 7.664 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.558e-05/0.3209, allocations: 15.98 kB / 429.4 MB, free: 7.648 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.3209, allocations: 8 kB / 429.4 MB, free: 7.641 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001433/0.3224, allocations: 0.5151 MB / 429.9 MB, free: 7.125 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00174/0.3241, allocations: 0.9375 MB / 430.8 MB, free: 6.121 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001664/0.3258, allocations: 478.5 kB / 431.3 MB, free: 5.617 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006434/0.3264, allocations: 241.2 kB / 431.5 MB, free: 5.371 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.743e-05/0.3265, allocations: 12.08 kB / 431.6 MB, free: 5.359 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.976e-05/0.3265, allocations: 42.56 kB / 431.6 MB, free: 5.309 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 2.685e-06/0.3265, allocations: 0 / 431.6 MB, free: 5.309 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.04131/0.3678, allocations: 5.746 MB / 437.3 MB, free: 15.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001607/0.368, allocations: 149 kB / 437.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00028/0.3682, allocations: 200.4 kB / 437.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.96e-05/0.3683, allocations: 37.7 kB / 437.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001212/0.3685, allocations: 145.7 kB / 437.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002423/0.3687, allocations: 198.3 kB / 438.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003054/0.369, allocations: 110.7 kB / 438.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.3692, allocations: 346.7 kB / 438.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001672/0.3709, allocations: 0.6188 MB / 439.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001859/0.3727, allocations: 0.7963 MB / 439.9 MB, free: 12.83 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00323/0.376, allocations: 1.247 MB / 441.2 MB, free: 11.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.394e-05/0.376, allocations: 7.938 kB / 441.2 MB, free: 11.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003805/0.3798, allocations: 1.394 MB / 442.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.116e-05/0.3798, allocations: 8 kB / 442.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.658e-05/0.3798, allocations: 8 kB / 442.6 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.917e-05/0.3799, allocations: 8.156 kB / 442.6 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001457/0.3813, allocations: 215.6 kB / 442.8 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.933e-05/0.3813, allocations: 11.98 kB / 442.8 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001009/0.3823, allocations: 95.84 kB / 442.9 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.701e-05/0.3824, allocations: 27.98 kB / 442.9 MB, free: 9.727 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: 2 (kinematicPTP.noWphase,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 (83): * Single equations (assignments): 83 * 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.0003731/0.3828, allocations: 185.6 kB / 443.1 MB, free: 9.535 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003661/0.3832, allocations: 157.5 kB / 443.3 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001892/0.3834, allocations: 67.28 kB / 443.3 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.126e-05/0.3834, allocations: 8 kB / 443.3 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.867e-06/0.3834, allocations: 4 kB / 443.3 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.358e-06/0.3834, allocations: 3.984 kB / 443.3 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005327/0.3887, allocations: 2.14 MB / 445.5 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-05/0.3887, allocations: 16.25 kB / 445.5 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008408/0.3896, allocations: 179.7 kB / 445.7 MB, free: 6.789 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.825e-05/0.3896, allocations: 15.98 kB / 445.7 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.176e-05/0.3896, allocations: 24 kB / 445.7 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.006e-05/0.3897, allocations: 19.94 kB / 445.7 MB, free: 6.73 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.116e-05/0.3897, allocations: 11.94 kB / 445.7 MB, free: 6.719 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003484/0.3932, allocations: 1.565 MB / 447.3 MB, free: 5.004 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002486/0.3934, allocations: 87.64 kB / 447.4 MB, free: 4.918 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.464e-05/0.3935, allocations: 31.98 kB / 447.4 MB, free: 4.887 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006339/0.3941, allocations: 75.98 kB / 447.5 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002082/0.3943, allocations: 95.64 kB / 447.6 MB, free: 4.719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.438e-05/0.3944, allocations: 39.98 kB / 447.6 MB, free: 4.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001618/0.3946, allocations: 141.2 kB / 447.8 MB, free: 4.543 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3946, allocations: 0 / 447.8 MB, free: 4.543 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007141/0.3953, allocations: 123.9 kB / 447.9 MB, free: 4.422 MB / 350.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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.003823/0.3991, allocations: 2.121 MB / 450 MB, free: 2.137 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003008/0.4021, allocations: 1.031 MB / 451 MB, free: 1.113 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.236e-05/0.4021, allocations: 4 kB / 451.1 MB, free: 1.109 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001129/0.4033, allocations: 337.9 kB / 451.4 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001065/0.4043, allocations: 131.5 kB / 451.5 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01479/0.4191, allocations: 6.792 MB / 458.3 MB, free: 9.371 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005978/0.4197, allocations: 0.8128 MB / 459.1 MB, free: 8.531 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000552/0.4203, allocations: 95.31 kB / 459.2 MB, free: 8.434 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004145/0.4207, allocations: 119.4 kB / 459.3 MB, free: 8.316 MB / 366.1 MB Notification: Performance of SimCode: time 1.773e-06/0.4207, allocations: 0 / 459.3 MB, free: 8.316 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0518/0.4725, allocations: 12.03 MB / 471.4 MB, free: 12.42 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.38/12.85, allocations: 0 / 471.4 MB, free: 12.42 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv. Warning: Get data of variable load.phi from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv failed! Error: Could not read variable PI.x in file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv. Warning: Get data of variable PI.x from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.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: 15.764214848997653]