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.001741/0.001742, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002008/0.002008, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 59.88 kB / 307 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09918/0.1005, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.005118/0.1057, allocations: 2.354 MB / 359.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002139/0.1079, allocations: 0.8378 MB / 360.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003927/0.1083, allocations: 8 kB / 360.8 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004505/0.1089, allocations: 51.56 kB / 360.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000368/0.1093, allocations: 59.5 kB / 360.9 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008121/0.1101, allocations: 171.6 kB / 361.1 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005796/0.1107, allocations: 387.5 kB / 361.4 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002624/0.111, allocations: 100.8 kB / 361.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004515/0.1114, allocations: 163.5 kB / 361.7 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000322/0.1117, allocations: 187.2 kB / 361.9 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.632e-05/0.1118, allocations: 32 kB / 361.9 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.965e-05/0.1119, allocations: 36 kB / 361.9 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001134/0.112, allocations: 91.78 kB / 362 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001609/0.1122, allocations: 143.2 kB / 362.2 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000396/0.1126, allocations: 335.1 kB / 362.5 MB, free: 9.062 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.1126, allocations: 0 / 362.5 MB, free: 9.062 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.316e-06/0.1126, allocations: 3.938 kB / 362.5 MB, free: 9.059 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.119e-05/0.1127, allocations: 3.938 kB / 362.5 MB, free: 9.055 MB / 302.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.001373/0.114, allocations: 0.6124 MB / 363.1 MB, free: 8.395 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.41e-05/0.1141, allocations: 8.031 kB / 363.1 MB, free: 8.387 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001044/0.1142, allocations: 78.72 kB / 363.2 MB, free: 8.301 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001091/0.1143, allocations: 44.56 kB / 363.2 MB, free: 8.258 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004267/0.1148, allocations: 272.2 kB / 363.5 MB, free: 7.953 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002356/0.115, allocations: 134.3 kB / 363.6 MB, free: 7.801 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.043e-05/0.1151, allocations: 36.36 kB / 363.7 MB, free: 7.766 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001256/0.1163, allocations: 0.5665 MB / 364.2 MB, free: 7.176 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.263e-05/0.1164, allocations: 0 / 364.2 MB, free: 7.176 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.955e-05/0.1164, allocations: 16 kB / 364.3 MB, free: 7.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.956e-05/0.1165, allocations: 8 kB / 364.3 MB, free: 7.152 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001364/0.1178, allocations: 0.5074 MB / 364.8 MB, free: 6.645 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001592/0.1194, allocations: 1.01 MB / 365.8 MB, free: 5.555 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001752/0.1212, allocations: 0.5062 MB / 366.3 MB, free: 5.012 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006633/0.1219, allocations: 259.4 kB / 366.5 MB, free: 4.746 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.915e-05/0.1219, allocations: 7.938 kB / 366.5 MB, free: 4.738 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.091e-05/0.122, allocations: 42.56 kB / 366.6 MB, free: 4.688 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.284e-06/0.122, allocations: 0 / 366.6 MB, free: 4.688 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.1937/0.3156, allocations: 5.712 MB / 372.3 MB, free: 20.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.877e-05/0.3158, allocations: 151.3 kB / 372.4 MB, free: 20.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002386/0.316, allocations: 200.7 kB / 372.6 MB, free: 20.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.755e-05/0.3161, allocations: 37.2 kB / 372.7 MB, free: 20.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.417e-05/0.3162, allocations: 139.7 kB / 372.8 MB, free: 20.28 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002113/0.3164, allocations: 194.2 kB / 373 MB, free: 20.17 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002956/0.3167, allocations: 112 kB / 373.1 MB, free: 20.15 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.3168, allocations: 344.8 kB / 373.5 MB, free: 19.84 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001686/0.3185, allocations: 0.6136 MB / 374.1 MB, free: 19.62 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00174/0.3203, allocations: 0.8039 MB / 374.9 MB, free: 19.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00301/0.3233, allocations: 1.249 MB / 376.1 MB, free: 18.52 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.962e-06/0.3233, allocations: 2.75 kB / 376.1 MB, free: 18.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003612/0.3269, allocations: 1.398 MB / 377.5 MB, free: 17.95 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.829e-05/0.327, allocations: 8.125 kB / 377.5 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.674e-05/0.327, allocations: 5.531 kB / 377.5 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.063e-05/0.327, allocations: 12.69 kB / 377.5 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001354/0.3284, allocations: 204.4 kB / 377.7 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.852e-05/0.3284, allocations: 14.84 kB / 377.8 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009706/0.3294, allocations: 106.3 kB / 377.9 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.598e-05/0.3295, allocations: 25.95 kB / 377.9 MB, free: 17.91 MB / 302.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.0003057/0.3298, allocations: 187.9 kB / 378.1 MB, free: 17.74 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003107/0.3301, allocations: 161.5 kB / 378.2 MB, free: 17.66 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001547/0.3303, allocations: 61.16 kB / 378.3 MB, free: 17.61 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.355e-06/0.3303, allocations: 7.75 kB / 378.3 MB, free: 17.61 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.209e-05/0.3303, allocations: 5.406 kB / 378.3 MB, free: 17.61 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.628e-06/0.3303, allocations: 3.656 kB / 378.3 MB, free: 17.61 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004667/0.335, allocations: 2.168 MB / 380.5 MB, free: 16.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.811e-05/0.3351, allocations: 12.92 kB / 380.5 MB, free: 16.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008071/0.3359, allocations: 182.8 kB / 380.7 MB, free: 16.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-05/0.3359, allocations: 15.88 kB / 380.7 MB, free: 16.44 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.712e-05/0.336, allocations: 27.23 kB / 380.7 MB, free: 16.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.397e-05/0.336, allocations: 20.2 kB / 380.7 MB, free: 16.42 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.367e-06/0.336, allocations: 15.88 kB / 380.7 MB, free: 16.42 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003095/0.3391, allocations: 1.555 MB / 382.3 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002186/0.3393, allocations: 161 kB / 382.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.364e-05/0.3394, allocations: 26.23 kB / 382.5 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006322/0.3401, allocations: 77.98 kB / 382.6 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002114/0.3403, allocations: 93.42 kB / 382.6 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.101e-05/0.3403, allocations: 29.98 kB / 382.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001356/0.3405, allocations: 146.3 kB / 382.8 MB, free: 15.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3405, allocations: 4 kB / 382.8 MB, free: 15.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007554/0.3413, allocations: 122.3 kB / 382.9 MB, free: 15.16 MB / 302.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.00342/0.3447, allocations: 2.12 MB / 385.1 MB, free: 13.67 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003109/0.3478, allocations: 1.159 MB / 386.2 MB, free: 13.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.238e-05/0.3478, allocations: 5.453 kB / 386.2 MB, free: 13.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001028/0.3489, allocations: 339.8 kB / 386.6 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000946/0.3498, allocations: 144 kB / 386.7 MB, free: 13.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01323/0.3631, allocations: 6.769 MB / 393.5 MB, free: 8.578 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003106/0.3634, allocations: 0.8115 MB / 394.3 MB, free: 7.828 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006606/0.3641, allocations: 97.06 kB / 394.4 MB, free: 7.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003729/0.3645, allocations: 119.9 kB / 394.5 MB, free: 7.68 MB / 302.1 MB Notification: Performance of SimCode: time 1.262e-06/0.3645, allocations: 0 / 394.5 MB, free: 7.68 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03155/0.396, allocations: 11.25 MB / 405.7 MB, free: 14.14 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.257/8.653, allocations: 3.5 kB / 405.8 MB, free: 14.14 MB / 318.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