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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001171/0.001171, allocations: 118.5 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001321/0.001321, allocations: 197.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 71.88 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3504/0.3516, allocations: 50.52 MB / 408.7 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004847/0.3565, allocations: 2.365 MB / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00211/0.3587, allocations: 0.8299 MB / 411.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003309/0.3591, allocations: 7.938 kB / 411.9 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003897/0.3595, allocations: 59.56 kB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004136/0.36, allocations: 55.55 kB / 412 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007408/0.3607, allocations: 179 kB / 412.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000595/0.3613, allocations: 395.5 kB / 412.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002712/0.3616, allocations: 99.81 kB / 412.7 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004195/0.362, allocations: 163.5 kB / 412.9 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003618/0.3624, allocations: 183.2 kB / 413 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.956e-05/0.3625, allocations: 32 kB / 413.1 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.964e-05/0.3626, allocations: 36 kB / 413.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000126/0.3627, allocations: 91.78 kB / 413.2 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000156/0.3629, allocations: 143.2 kB / 413.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005042/0.3634, allocations: 341.6 kB / 413.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.3634, allocations: 0 / 413.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3634, allocations: 0 / 413.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.439e-05/0.3634, allocations: 0 / 413.7 MB, free: 12.55 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.001559/0.365, allocations: 0.6314 MB / 414.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.528e-05/0.365, allocations: 8.031 kB / 414.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.898e-05/0.3651, allocations: 78.72 kB / 414.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.582e-05/0.3652, allocations: 40.7 kB / 414.4 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005797/0.3658, allocations: 280.4 kB / 414.7 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002373/0.3661, allocations: 134.3 kB / 414.8 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.377e-05/0.3662, allocations: 32.38 kB / 414.9 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001329/0.3675, allocations: 0.5659 MB / 415.4 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.509e-05/0.3675, allocations: 7.938 kB / 415.4 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.704e-05/0.3676, allocations: 8 kB / 415.4 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.441e-05/0.3676, allocations: 8 kB / 415.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001402/0.369, allocations: 0.5151 MB / 416 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00181/0.3708, allocations: 1.014 MB / 417 MB, free: 9.027 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001793/0.3727, allocations: 0.5024 MB / 417.5 MB, free: 8.488 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006496/0.3733, allocations: 266.7 kB / 417.7 MB, free: 8.219 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.917e-05/0.3734, allocations: 8 kB / 417.8 MB, free: 8.211 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.854e-05/0.3734, allocations: 38.56 kB / 417.8 MB, free: 8.164 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 4.538e-06/0.3734, allocations: 0 / 417.8 MB, free: 8.164 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03879/0.4122, allocations: 5.726 MB / 423.5 MB, free: 2.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001383/0.4124, allocations: 152.9 kB / 423.7 MB, free: 2.25 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003082/0.4127, allocations: 204.8 kB / 423.9 MB, free: 2.039 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001092/0.4129, allocations: 33.7 kB / 423.9 MB, free: 2 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000142/0.413, allocations: 153.7 kB / 424 MB, free: 1.844 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002517/0.4133, allocations: 194.4 kB / 424.2 MB, free: 1.652 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003305/0.4136, allocations: 110.6 kB / 424.3 MB, free: 1.539 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002049/0.4138, allocations: 346.8 kB / 424.7 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001655/0.4155, allocations: 0.6149 MB / 425.3 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001829/0.4173, allocations: 0.7964 MB / 426.1 MB, free: 15.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00324/0.4206, allocations: 1.244 MB / 427.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.793e-06/0.4206, allocations: 0 / 427.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003828/0.4245, allocations: 1.402 MB / 428.7 MB, free: 12.97 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.501e-05/0.4245, allocations: 8 kB / 428.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.9e-05/0.4245, allocations: 7.938 kB / 428.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.272e-05/0.4246, allocations: 12 kB / 428.8 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001399/0.426, allocations: 211.7 kB / 429 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.694e-05/0.426, allocations: 15.92 kB / 429 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000999/0.427, allocations: 99.78 kB / 429.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.517e-05/0.4271, allocations: 31.98 kB / 429.1 MB, free: 12.59 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.0004167/0.4276, allocations: 177.6 kB / 429.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003689/0.4279, allocations: 157.7 kB / 429.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001706/0.4281, allocations: 67.3 kB / 429.5 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.878e-06/0.4281, allocations: 8.234 kB / 429.5 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.398e-06/0.4282, allocations: 0 / 429.5 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.102e-05/0.4282, allocations: 7.969 kB / 429.5 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005382/0.4336, allocations: 2.172 MB / 431.7 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.761e-05/0.4336, allocations: 12 kB / 431.7 MB, free: 9.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008896/0.4345, allocations: 183.8 kB / 431.9 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.249e-05/0.4346, allocations: 16 kB / 431.9 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.394e-05/0.4346, allocations: 28 kB / 431.9 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.349e-05/0.4347, allocations: 19.92 kB / 432 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.585e-05/0.4347, allocations: 15.94 kB / 432 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003702/0.4384, allocations: 1.561 MB / 433.5 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002725/0.4387, allocations: 160.8 kB / 433.7 MB, free: 7.652 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.947e-05/0.4388, allocations: 27.98 kB / 433.7 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006515/0.4395, allocations: 75.98 kB / 433.8 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000275/0.4397, allocations: 99.66 kB / 433.9 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.6e-05/0.4398, allocations: 32 kB / 433.9 MB, free: 7.422 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001727/0.44, allocations: 136.1 kB / 434.1 MB, free: 7.289 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.44, allocations: 0 / 434.1 MB, free: 7.289 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008223/0.4408, allocations: 127.9 kB / 434.2 MB, free: 7.164 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.00419/0.445, allocations: 2.117 MB / 436.3 MB, free: 4.887 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003147/0.4482, allocations: 1.131 MB / 437.4 MB, free: 3.754 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.263e-05/0.4482, allocations: 5.562 kB / 437.4 MB, free: 3.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001048/0.4493, allocations: 345.8 kB / 437.8 MB, free: 3.414 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00103/0.4503, allocations: 148.8 kB / 437.9 MB, free: 3.273 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01473/0.4651, allocations: 6.799 MB / 444.7 MB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006104/0.4657, allocations: 0.8129 MB / 445.5 MB, free: 11.14 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005755/0.4663, allocations: 95.31 kB / 445.6 MB, free: 11.04 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004499/0.4668, allocations: 111.4 kB / 445.7 MB, free: 10.93 MB / 366.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4668, allocations: 0 / 445.7 MB, free: 10.93 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0402/0.507, allocations: 11.29 MB / 457 MB, free: 15.75 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.707/9.214, allocations: 7.875 kB / 457 MB, free: 15.75 MB / 382.1 MB (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.0016 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "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! " Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:time,load.w,speed.flange.phi