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: 124.4 kB / 17.79 MB, free: 5.266 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.001383/0.001383, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.591/1.591, allocations: 230.6 MB / 254.1 MB, free: 15.11 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.001627/0.001627, allocations: 47.92 kB / 373 MB, free: 10.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1368, allocations: 53.32 MB / 426.3 MB, free: 4.852 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004662/0.1415, allocations: 2.379 MB / 428.7 MB, free: 2.453 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002036/0.1435, allocations: 0.8416 MB / 429.5 MB, free: 1.605 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002007/0.1437, allocations: 7.938 kB / 429.5 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003827/0.1441, allocations: 55.56 kB / 429.6 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000251/0.1444, allocations: 63.48 kB / 429.6 MB, free: 1.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006391/0.145, allocations: 179.5 kB / 429.8 MB, free: 1.305 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004804/0.1455, allocations: 379.6 kB / 430.2 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002099/0.1457, allocations: 75.84 kB / 430.3 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003629/0.146, allocations: 175.4 kB / 430.4 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002852/0.1463, allocations: 175.3 kB / 430.6 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.051e-05/0.1464, allocations: 36 kB / 430.6 MB, free: 488 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.504e-05/0.1465, allocations: 35.94 kB / 430.7 MB, free: 452 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001288/0.1466, allocations: 99.72 kB / 430.8 MB, free: 352 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001563/0.1467, allocations: 147.2 kB / 430.9 MB, free: 204 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3001/0.4468, allocations: 335.1 kB / 431.2 MB, free: 8.824 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.115e-06/0.4469, allocations: 0 / 431.2 MB, free: 8.824 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.4469, allocations: 0 / 431.2 MB, free: 8.824 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.044e-05/0.4469, allocations: 0 / 431.2 MB, free: 8.824 MB / 350.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.001347/0.4482, allocations: 0.6249 MB / 431.9 MB, free: 8.398 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.4483, allocations: 9.125 kB / 431.9 MB, free: 8.398 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.702e-05/0.4484, allocations: 72.11 kB / 431.9 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.701e-05/0.4484, allocations: 41.8 kB / 432 MB, free: 8.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004176/0.4489, allocations: 277.6 kB / 432.3 MB, free: 8.125 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000199/0.4491, allocations: 138.7 kB / 432.4 MB, free: 8.031 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.293e-05/0.4491, allocations: 27 kB / 432.4 MB, free: 8.031 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001264/0.4504, allocations: 0.5641 MB / 433 MB, free: 7.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.018e-05/0.4504, allocations: 5.875 kB / 433 MB, free: 7.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.885e-05/0.4505, allocations: 11.09 kB / 433 MB, free: 7.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.343e-05/0.4505, allocations: 10 kB / 433 MB, free: 7.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001393/0.4519, allocations: 0.5089 MB / 433.5 MB, free: 7.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001392/0.4533, allocations: 1.016 MB / 434.5 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001681/0.4549, allocations: 484.9 kB / 435 MB, free: 7.281 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006498/0.4556, allocations: 234.5 kB / 435.2 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.754e-05/0.4556, allocations: 7.156 kB / 435.2 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.685e-05/0.4557, allocations: 42.97 kB / 435.3 MB, free: 7.211 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.804e-06/0.4557, allocations: 1.656 kB / 435.3 MB, free: 7.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.04104/0.4967, allocations: 5.732 MB / 441 MB, free: 6.516 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000119/0.4968, allocations: 147.7 kB / 441.2 MB, free: 6.355 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002799/0.4971, allocations: 202.9 kB / 441.4 MB, free: 6.215 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.865e-05/0.4972, allocations: 36.83 kB / 441.4 MB, free: 6.176 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.815e-05/0.4973, allocations: 144 kB / 441.5 MB, free: 6.047 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002223/0.4975, allocations: 199.6 kB / 441.7 MB, free: 5.895 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003134/0.4978, allocations: 113 kB / 441.8 MB, free: 5.828 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.196e-05/0.4979, allocations: 341.6 kB / 442.2 MB, free: 5.504 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001715/0.4996, allocations: 0.6173 MB / 442.8 MB, free: 5.262 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001731/0.5014, allocations: 0.7986 MB / 443.6 MB, free: 4.797 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003135/0.5045, allocations: 1.25 MB / 444.8 MB, free: 4.141 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.233e-06/0.5045, allocations: 2.406 kB / 444.8 MB, free: 4.141 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003762/0.5083, allocations: 1.395 MB / 446.2 MB, free: 3.594 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.617e-05/0.5083, allocations: 7.641 kB / 446.2 MB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.71e-05/0.5083, allocations: 5.156 kB / 446.2 MB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.453e-05/0.5084, allocations: 9.781 kB / 446.3 MB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001397/0.5098, allocations: 214.1 kB / 446.5 MB, free: 3.586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.309e-05/0.5098, allocations: 16.97 kB / 446.5 MB, free: 3.586 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009576/0.5107, allocations: 107.3 kB / 446.6 MB, free: 3.562 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.467e-05/0.5108, allocations: 24.91 kB / 446.6 MB, free: 3.559 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.0003294/0.5111, allocations: 185.5 kB / 446.8 MB, free: 3.402 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003374/0.5115, allocations: 161.5 kB / 447 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001818/0.5117, allocations: 55.97 kB / 447 MB, free: 3.266 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.408e-06/0.5117, allocations: 10.84 kB / 447 MB, free: 3.266 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.617e-05/0.5117, allocations: 1.875 kB / 447 MB, free: 3.266 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.919e-06/0.5117, allocations: 3.922 kB / 447 MB, free: 3.266 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004656/0.5164, allocations: 2.174 MB / 449.2 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.7e-05/0.5164, allocations: 9.906 kB / 449.2 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007981/0.5172, allocations: 185.2 kB / 449.4 MB, free: 2.156 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.597e-05/0.5172, allocations: 13.56 kB / 449.4 MB, free: 2.156 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.492e-05/0.5172, allocations: 27.7 kB / 449.4 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.628e-05/0.5173, allocations: 17 kB / 449.4 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.418e-05/0.5173, allocations: 19.97 kB / 449.5 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003041/0.5203, allocations: 1.565 MB / 451 MB, free: 1.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001987/0.5205, allocations: 157.9 kB / 451.2 MB, free: 0.875 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.253e-05/0.5206, allocations: 27.3 kB / 451.2 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005895/0.5212, allocations: 80.17 kB / 451.3 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001913/0.5214, allocations: 96.09 kB / 451.4 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.417e-05/0.5214, allocations: 29.25 kB / 451.4 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001256/0.5215, allocations: 141.9 kB / 451.5 MB, free: 0.668 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5215, allocations: 0 / 451.5 MB, free: 0.668 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007721/0.5223, allocations: 122.7 kB / 451.7 MB, free: 0.6484 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.003709/0.526, allocations: 2.128 MB / 453.8 MB, free: 14.97 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003132/0.5292, allocations: 1.028 MB / 454.8 MB, free: 14.46 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/0.5292, allocations: 3.156 kB / 454.8 MB, free: 14.46 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0011/0.5303, allocations: 341.1 kB / 455.2 MB, free: 14.31 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001158/0.5314, allocations: 129.6 kB / 455.3 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01514/0.5466, allocations: 6.782 MB / 462.1 MB, free: 9.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005217/0.5471, allocations: 0.8143 MB / 462.9 MB, free: 8.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005384/0.5476, allocations: 95.7 kB / 463 MB, free: 8.363 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004206/0.548, allocations: 112.7 kB / 463.1 MB, free: 8.281 MB / 366.1 MB Notification: Performance of SimCode: time 1.303e-06/0.548, allocations: 0 / 463.1 MB, free: 8.281 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04073/0.5888, allocations: 11.36 MB / 474.4 MB, free: 15.21 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.165/9.754, allocations: 5.969 kB / 474.4 MB, free: 15.21 MB / 382.1 MB " [Timeout remaining time 650] (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: 12.609112678008387]