Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001776/0.001776, allocations: 118.9 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002109/0.002109, allocations: 214.6 kB / 20.75 MB, free: 2.328 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.495/1.495, allocations: 230.4 MB / 254 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001861/0.001861, allocations: 63.84 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1165, allocations: 53.37 MB / 426.3 MB, free: 4.734 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003984/0.1205, allocations: 2.365 MB / 428.7 MB, free: 2.355 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001562/0.122, allocations: 0.8533 MB / 429.6 MB, free: 1.496 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001373/0.1222, allocations: 7.938 kB / 429.6 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002892/0.1224, allocations: 51.58 kB / 429.6 MB, free: 1.438 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001963/0.1226, allocations: 59.55 kB / 429.7 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004898/0.1231, allocations: 187.6 kB / 429.9 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004424/0.1236, allocations: 379.6 kB / 430.2 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000195/0.1238, allocations: 71.84 kB / 430.3 MB, free: 0.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003239/0.1241, allocations: 179.4 kB / 430.5 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002579/0.1243, allocations: 175.3 kB / 430.6 MB, free: 412 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.825e-05/0.1244, allocations: 39.94 kB / 430.7 MB, free: 372 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.208e-05/0.1245, allocations: 36 kB / 430.7 MB, free: 336 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001417/0.1246, allocations: 103.7 kB / 430.8 MB, free: 232 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001573/0.1248, allocations: 143.2 kB / 431 MB, free: 88 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2417/0.3665, allocations: 334 kB / 431.3 MB, free: 8.285 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.305e-06/0.3665, allocations: 0 / 431.3 MB, free: 8.285 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3665, allocations: 0 / 431.3 MB, free: 8.285 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.377e-06/0.3665, allocations: 0 / 431.3 MB, free: 8.285 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.001223/0.3677, allocations: 0.6223 MB / 431.9 MB, free: 7.855 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/0.3678, allocations: 14.25 kB / 431.9 MB, free: 7.855 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.806e-05/0.3679, allocations: 70.84 kB / 432 MB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.45e-05/0.368, allocations: 42.58 kB / 432 MB, free: 7.797 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003415/0.3683, allocations: 275.3 kB / 432.3 MB, free: 7.582 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001924/0.3685, allocations: 139.3 kB / 432.4 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.135e-05/0.3686, allocations: 27.84 kB / 432.5 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001156/0.3697, allocations: 0.5655 MB / 433 MB, free: 7.391 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.057e-05/0.3697, allocations: 2.25 kB / 433 MB, free: 7.391 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.658e-05/0.3698, allocations: 12.69 kB / 433 MB, free: 7.391 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.342e-05/0.3698, allocations: 9.625 kB / 433 MB, free: 7.391 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001433/0.3712, allocations: 0.5071 MB / 433.6 MB, free: 7.391 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001528/0.3727, allocations: 1.01 MB / 434.6 MB, free: 6.836 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001832/0.3746, allocations: 486.2 kB / 435 MB, free: 6.742 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007093/0.3753, allocations: 236.2 kB / 435.3 MB, free: 6.711 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.166e-05/0.3753, allocations: 9.172 kB / 435.3 MB, free: 6.711 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.181e-05/0.3754, allocations: 40.75 kB / 435.3 MB, free: 6.672 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.853e-06/0.3754, allocations: 0 / 435.3 MB, free: 6.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.04171/0.4171, allocations: 5.733 MB / 441.1 MB, free: 6.258 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.611e-05/0.4172, allocations: 144.4 kB / 441.2 MB, free: 6.098 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002199/0.4174, allocations: 202.9 kB / 441.4 MB, free: 5.961 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.382e-05/0.4175, allocations: 36.23 kB / 441.4 MB, free: 5.922 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.505e-05/0.4175, allocations: 142.4 kB / 441.6 MB, free: 5.793 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001845/0.4177, allocations: 204.2 kB / 441.8 MB, free: 5.641 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003099/0.418, allocations: 113.3 kB / 441.9 MB, free: 5.574 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.073e-05/0.4181, allocations: 345.6 kB / 442.2 MB, free: 5.246 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001631/0.4197, allocations: 0.6166 MB / 442.8 MB, free: 5.004 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001656/0.4214, allocations: 0.7947 MB / 443.6 MB, free: 4.539 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002945/0.4243, allocations: 1.251 MB / 444.9 MB, free: 3.883 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.728e-06/0.4244, allocations: 2.406 kB / 444.9 MB, free: 3.883 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003559/0.4279, allocations: 1.394 MB / 446.3 MB, free: 3.336 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.467e-05/0.4279, allocations: 9.469 kB / 446.3 MB, free: 3.336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/0.4279, allocations: 4.438 kB / 446.3 MB, free: 3.336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.698e-05/0.428, allocations: 10.12 kB / 446.3 MB, free: 3.336 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001357/0.4293, allocations: 214.1 kB / 446.5 MB, free: 3.324 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.738e-05/0.4293, allocations: 15.09 kB / 446.5 MB, free: 3.324 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009233/0.4303, allocations: 105.6 kB / 446.6 MB, free: 3.305 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.068e-05/0.4304, allocations: 29 kB / 446.7 MB, free: 3.297 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.0002889/0.4306, allocations: 184.9 kB / 446.8 MB, free: 3.141 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002812/0.4309, allocations: 158.1 kB / 447 MB, free: 3.062 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001786/0.4311, allocations: 64.81 kB / 447 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.029e-05/0.4311, allocations: 8.875 kB / 447.1 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-05/0.4311, allocations: 1.594 kB / 447.1 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.206e-06/0.4311, allocations: 3.938 kB / 447.1 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004418/0.4356, allocations: 2.171 MB / 449.2 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.62e-05/0.4356, allocations: 9.188 kB / 449.2 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007708/0.4363, allocations: 188.4 kB / 449.4 MB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.816e-05/0.4364, allocations: 13.84 kB / 449.4 MB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.404e-05/0.4364, allocations: 27.27 kB / 449.5 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.916e-05/0.4364, allocations: 22.7 kB / 449.5 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.305e-05/0.4364, allocations: 15.41 kB / 449.5 MB, free: 1.887 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002994/0.4394, allocations: 1.565 MB / 451.1 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001787/0.4396, allocations: 163 kB / 451.2 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.472e-05/0.4397, allocations: 32.02 kB / 451.3 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005737/0.4403, allocations: 75.83 kB / 451.3 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001782/0.4404, allocations: 95.38 kB / 451.4 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.473e-05/0.4405, allocations: 33.97 kB / 451.5 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001158/0.4406, allocations: 142 kB / 451.6 MB, free: 400 kB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4406, allocations: 0 / 451.6 MB, free: 400 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007293/0.4413, allocations: 121.7 kB / 451.7 MB, free: 380 kB / 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.003721/0.4451, allocations: 2.122 MB / 453.8 MB, free: 14.69 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002987/0.448, allocations: 1.021 MB / 454.9 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.4481, allocations: 3.719 kB / 454.9 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001036/0.4491, allocations: 336.6 kB / 455.2 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009087/0.45, allocations: 132.2 kB / 455.3 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01446/0.4645, allocations: 6.794 MB / 462.1 MB, free: 8.879 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005083/0.465, allocations: 0.8142 MB / 462.9 MB, free: 8.129 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005126/0.4655, allocations: 96.02 kB / 463 MB, free: 8.082 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004065/0.4659, allocations: 116.8 kB / 463.1 MB, free: 7.996 MB / 366.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4659, allocations: 4.938 kB / 463.1 MB, free: 7.992 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05667/0.5226, allocations: 11.35 MB / 474.5 MB, free: 14.88 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.079/8.602, allocations: 3.984 kB / 474.5 MB, free: 14.88 MB / 382.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv. Warning: Get data of variable load.phi from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv failed! Error: Could not read variable PI.x in file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv. Warning: Get data of variable PI.x from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_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: 11.289059709990397]