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.001327/0.001327, allocations: 109.2 kB / 20.43 MB, free: 1.473 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.001411/0.001411, allocations: 213.7 kB / 23.74 MB, free: 4.688 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.496/1.496, allocations: 230.6 MB / 257.5 MB, free: 8.008 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.00159/0.00159, allocations: 48.06 kB / 377.8 MB, free: 3.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3153/0.3169, allocations: 53.36 MB / 431.1 MB, free: 7.008 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004187/0.321, allocations: 2.394 MB / 433.5 MB, free: 4.605 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001844/0.3229, allocations: 0.8571 MB / 434.4 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001937/0.3231, allocations: 7.938 kB / 434.4 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003305/0.3234, allocations: 51.58 kB / 434.4 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002362/0.3236, allocations: 67.48 kB / 434.5 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005844/0.3242, allocations: 179.5 kB / 434.7 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005063/0.3247, allocations: 379.6 kB / 435 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002143/0.3249, allocations: 80.33 kB / 435.1 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000378/0.3253, allocations: 163.5 kB / 435.3 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002921/0.3256, allocations: 183.2 kB / 435.5 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.362e-05/0.3257, allocations: 39.94 kB / 435.5 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.569e-05/0.3257, allocations: 32 kB / 435.5 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001263/0.3259, allocations: 103.7 kB / 435.6 MB, free: 2.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001524/0.326, allocations: 147.2 kB / 435.8 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004437/0.3265, allocations: 335 kB / 436.1 MB, free: 2.012 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.3265, allocations: 0 / 436.1 MB, free: 2.012 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3265, allocations: 4 kB / 436.1 MB, free: 2.008 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.3265, allocations: 0 / 436.1 MB, free: 2.008 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.001252/0.3277, allocations: 0.5444 MB / 436.6 MB, free: 1.434 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.3278, allocations: 12.03 kB / 436.7 MB, free: 1.422 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.034e-05/0.3279, allocations: 74.72 kB / 436.7 MB, free: 1.34 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.258e-05/0.3279, allocations: 40.7 kB / 436.8 MB, free: 1.301 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005033/0.3284, allocations: 222.4 kB / 437 MB, free: 1.055 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003506/0.3288, allocations: 351.9 kB / 437.3 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.304e-05/0.3289, allocations: 28.38 kB / 437.4 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001216/0.3301, allocations: 0.562 MB / 437.9 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.933e-05/0.3301, allocations: 0 / 437.9 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.86e-05/0.3301, allocations: 16 kB / 437.9 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.3301, allocations: 8 kB / 437.9 MB, free: 4 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001396/0.3315, allocations: 0.5082 MB / 438.5 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001656/0.3332, allocations: 0.9491 MB / 439.4 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001649/0.3348, allocations: 486.5 kB / 439.9 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006123/0.3355, allocations: 235.3 kB / 440.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.338e-05/0.3355, allocations: 12 kB / 440.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.396e-05/0.3355, allocations: 38.56 kB / 440.2 MB, free: 13.67 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.823e-06/0.3355, allocations: 0 / 440.2 MB, free: 13.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03835/0.3739, allocations: 5.745 MB / 445.9 MB, free: 7.914 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001427/0.374, allocations: 145 kB / 446 MB, free: 7.742 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002717/0.3743, allocations: 200.3 kB / 446.2 MB, free: 7.535 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.356e-05/0.3744, allocations: 37.7 kB / 446.3 MB, free: 7.492 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001139/0.3745, allocations: 145.8 kB / 446.4 MB, free: 7.344 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002281/0.3747, allocations: 198.3 kB / 446.6 MB, free: 7.148 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002863/0.375, allocations: 114.6 kB / 446.7 MB, free: 7.031 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001871/0.3752, allocations: 346.8 kB / 447.1 MB, free: 6.684 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001599/0.3768, allocations: 0.6187 MB / 447.7 MB, free: 6.062 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001726/0.3785, allocations: 0.7964 MB / 448.5 MB, free: 5.191 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003079/0.3816, allocations: 1.251 MB / 449.7 MB, free: 3.863 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.3816, allocations: 0 / 449.7 MB, free: 3.863 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003578/0.3852, allocations: 1.398 MB / 451.1 MB, free: 2.457 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.011e-05/0.3852, allocations: 8 kB / 451.1 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.571e-05/0.3852, allocations: 4 kB / 451.1 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.259e-05/0.3853, allocations: 12 kB / 451.1 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00138/0.3867, allocations: 211.7 kB / 451.4 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.369e-05/0.3867, allocations: 11.98 kB / 451.4 MB, free: 2.215 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009758/0.3877, allocations: 95.8 kB / 451.5 MB, free: 2.121 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.166e-05/0.3878, allocations: 35.98 kB / 451.5 MB, free: 2.086 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.0003663/0.3881, allocations: 177.6 kB / 451.7 MB, free: 1.902 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003289/0.3884, allocations: 157.3 kB / 451.8 MB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000195/0.3886, allocations: 67.3 kB / 451.9 MB, free: 1.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.858e-06/0.3887, allocations: 8 kB / 451.9 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.138e-05/0.3887, allocations: 0 / 451.9 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.387e-05/0.3887, allocations: 7.984 kB / 451.9 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00502/0.3937, allocations: 2.139 MB / 454 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.722e-05/0.3937, allocations: 8 kB / 454.1 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007851/0.3945, allocations: 188.6 kB / 454.2 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.514e-05/0.3945, allocations: 12 kB / 454.2 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.721e-05/0.3946, allocations: 32.22 kB / 454.3 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.755e-05/0.3946, allocations: 15.94 kB / 454.3 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.235e-05/0.3946, allocations: 15.94 kB / 454.3 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003233/0.3978, allocations: 1.557 MB / 455.9 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002203/0.3981, allocations: 95.58 kB / 456 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.838e-05/0.3981, allocations: 27.98 kB / 456 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005709/0.3987, allocations: 71.92 kB / 456.1 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002083/0.3989, allocations: 95.7 kB / 456.1 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.047e-05/0.399, allocations: 36 kB / 456.2 MB, free: 13.05 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000162/0.3991, allocations: 140.1 kB / 456.3 MB, free: 12.92 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3991, allocations: 0 / 456.3 MB, free: 12.92 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007057/0.3998, allocations: 127.9 kB / 456.4 MB, free: 12.79 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: 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.003788/0.4036, allocations: 2.117 MB / 458.6 MB, free: 10.51 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002873/0.4065, allocations: 1.025 MB / 459.6 MB, free: 9.488 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.187e-06/0.4065, allocations: 0 / 459.6 MB, free: 9.488 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001043/0.4075, allocations: 335.2 kB / 459.9 MB, free: 9.164 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000991/0.4085, allocations: 148 kB / 460.1 MB, free: 9.023 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01415/0.4227, allocations: 6.788 MB / 466.8 MB, free: 1.742 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006414/0.4233, allocations: 0.8089 MB / 467.7 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005928/0.4239, allocations: 91.33 kB / 467.7 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000446/0.4244, allocations: 123.4 kB / 467.9 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of SimCode: time 2.615e-06/0.4244, allocations: 0 / 467.9 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04819/0.4726, allocations: 12.04 MB / 479.9 MB, free: 4.801 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.03/12.51, allocations: 11.38 kB / 479.9 MB, free: 4.793 MB / 382.1 MB " [Timeout remaining time 647] (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: 15.28681953799969]