Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 88.39 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 183.1 kB / 17.21 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.538/1.538, allocations: 223.2 MB / 241.2 MB, free: 5.176 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002733/0.0002734, allocations: 4.438 kB / 300.9 MB, free: 5.492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1172, allocations: 50.42 MB / 351.3 MB, free: 11.23 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004201/0.1215, allocations: 1.99 MB / 353.3 MB, free: 9.223 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002356/0.1239, allocations: 0.8071 MB / 354.1 MB, free: 8.41 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002811/0.1242, allocations: 11.94 kB / 354.1 MB, free: 8.398 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003972/0.1246, allocations: 35.7 kB / 354.2 MB, free: 8.363 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003454/0.1249, allocations: 59.67 kB / 354.2 MB, free: 8.305 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009636/0.1259, allocations: 159.7 kB / 354.4 MB, free: 8.148 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006116/0.1266, allocations: 351.5 kB / 354.7 MB, free: 7.805 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002813/0.1269, allocations: 78.73 kB / 354.8 MB, free: 7.73 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003235/0.1272, allocations: 143.4 kB / 354.9 MB, free: 7.59 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003459/0.1276, allocations: 155.4 kB / 355.1 MB, free: 7.438 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.181e-05/0.1276, allocations: 16 kB / 355.1 MB, free: 7.422 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.177e-05/0.1277, allocations: 16 kB / 355.1 MB, free: 7.406 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001587/0.1279, allocations: 87.72 kB / 355.2 MB, free: 7.32 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001065/0.128, allocations: 73.52 kB / 355.3 MB, free: 7.242 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004333/0.1285, allocations: 251.3 kB / 355.5 MB, free: 6.996 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.097e-05/0.1285, allocations: 8 kB / 355.5 MB, free: 6.988 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.1285, allocations: 0 / 355.5 MB, free: 6.988 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.1285, allocations: 0 / 355.5 MB, free: 6.988 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001971/0.1305, allocations: 0.6235 MB / 356.2 MB, free: 6.316 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.186e-05/0.1306, allocations: 8.031 kB / 356.2 MB, free: 6.309 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001278/0.1307, allocations: 74.53 kB / 356.2 MB, free: 6.227 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001277/0.1309, allocations: 47.48 kB / 356.3 MB, free: 6.18 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006051/0.1315, allocations: 294 kB / 356.6 MB, free: 5.855 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003495/0.1319, allocations: 149.7 kB / 356.7 MB, free: 5.688 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.017e-05/0.132, allocations: 28 kB / 356.7 MB, free: 5.66 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002074/0.1341, allocations: 0.5776 MB / 357.3 MB, free: 5.059 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.557e-05/0.1341, allocations: 4 kB / 357.3 MB, free: 5.055 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.219e-05/0.1342, allocations: 12 kB / 357.3 MB, free: 5.043 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.909e-05/0.1342, allocations: 8 kB / 357.3 MB, free: 5.035 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002492/0.1367, allocations: 0.5308 MB / 357.9 MB, free: 4.504 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002427/0.1391, allocations: 1.03 MB / 358.9 MB, free: 3.395 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002282/0.1414, allocations: 0.5107 MB / 359.4 MB, free: 2.848 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009475/0.1424, allocations: 279.6 kB / 359.7 MB, free: 2.562 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.289e-05/0.1425, allocations: 8.172 kB / 359.7 MB, free: 2.555 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.627e-05/0.1426, allocations: 46.75 kB / 359.7 MB, free: 2.5 MB / 286.1 MB Notification: Performance of pre-optimization done (n=44): time 3.647e-06/0.1426, allocations: 0 / 359.7 MB, free: 2.5 MB / 286.1 MB Notification: Performance of matching and sorting (n=72): time 0.0352/0.1778, allocations: 6.796 MB / 366.5 MB, free: 11.69 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.879e-05/0.1779, allocations: 149.2 kB / 366.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002517/0.1782, allocations: 258.5 kB / 366.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.807e-05/0.1782, allocations: 41.7 kB / 367 MB, free: 11.21 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.449e-05/0.1783, allocations: 149.5 kB / 367.1 MB, free: 11.06 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001664/0.1785, allocations: 193.3 kB / 367.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.45e-05/0.1786, allocations: 12 kB / 367.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.1787, allocations: 350.8 kB / 367.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001365/0.1801, allocations: 0.65 MB / 368.3 MB, free: 9.855 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001507/0.1816, allocations: 0.8277 MB / 369.1 MB, free: 8.953 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001316/0.1829, allocations: 0.6137 MB / 369.8 MB, free: 8.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.1829, allocations: 0 / 369.8 MB, free: 8.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003152/0.1861, allocations: 1.464 MB / 371.2 MB, free: 6.867 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.187e-05/0.1861, allocations: 8 kB / 371.2 MB, free: 6.859 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.1861, allocations: 4 kB / 371.2 MB, free: 6.855 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.068e-05/0.1862, allocations: 8 kB / 371.2 MB, free: 6.848 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00119/0.1874, allocations: 231.7 kB / 371.5 MB, free: 6.621 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.783e-05/0.1874, allocations: 15.97 kB / 371.5 MB, free: 6.605 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000819/0.1882, allocations: 123.7 kB / 371.6 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.574e-05/0.1883, allocations: 27.98 kB / 371.6 MB, free: 6.457 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.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 initialization (83): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00031/0.1886, allocations: 193.5 kB / 371.8 MB, free: 6.258 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002954/0.1889, allocations: 161.5 kB / 372 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001843/0.1891, allocations: 67.61 kB / 372 MB, free: 6.027 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.376e-06/0.1891, allocations: 11.94 kB / 372.1 MB, free: 6.016 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.1891, allocations: 0 / 372.1 MB, free: 6.016 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.1891, allocations: 4.078 kB / 372.1 MB, free: 6.012 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004357/0.1935, allocations: 2.308 MB / 374.4 MB, free: 3.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-05/0.1935, allocations: 12 kB / 374.4 MB, free: 3.508 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007173/0.1943, allocations: 200.4 kB / 374.6 MB, free: 3.312 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.031e-05/0.1943, allocations: 16 kB / 374.6 MB, free: 3.297 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.012e-05/0.1944, allocations: 31.98 kB / 374.6 MB, free: 3.266 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.524e-05/0.1944, allocations: 15.94 kB / 374.6 MB, free: 3.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.346e-05/0.1944, allocations: 15.94 kB / 374.7 MB, free: 3.234 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003043/0.1974, allocations: 1.677 MB / 376.3 MB, free: 1.398 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002373/0.1977, allocations: 180.5 kB / 376.5 MB, free: 1.203 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.98e-05/0.1978, allocations: 28 kB / 376.5 MB, free: 1.176 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005291/0.1983, allocations: 99.97 kB / 376.6 MB, free: 1.078 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001907/0.1985, allocations: 103.7 kB / 376.7 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.482e-05/0.1986, allocations: 28 kB / 376.8 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001858/0.1987, allocations: 186 kB / 376.9 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1988, allocations: 0 / 376.9 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006507/0.1994, allocations: 124 kB / 377.1 MB, free: 0.6445 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003418/0.2028, allocations: 2.234 MB / 379.3 MB, free: 14.25 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002728/0.2056, allocations: 1.182 MB / 380.5 MB, free: 13.07 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.616e-06/0.2056, allocations: 4 kB / 380.5 MB, free: 13.07 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001043/0.2067, allocations: 379.2 kB / 380.9 MB, free: 12.7 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009338/0.2076, allocations: 159.7 kB / 381 MB, free: 12.55 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008544/0.2162, allocations: 4.385 MB / 385.4 MB, free: 7.906 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005032/0.2167, allocations: 0.8327 MB / 386.2 MB, free: 7.051 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006648/0.2174, allocations: 92.16 kB / 386.3 MB, free: 6.961 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003757/0.2178, allocations: 131.3 kB / 386.5 MB, free: 6.832 MB / 318.1 MB Notification: Performance of SimCode: time 1.011e-06/0.2178, allocations: 0 / 386.5 MB, free: 6.832 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02308/0.2408, allocations: 10.6 MB / 397.1 MB, free: 12.41 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001745/0.2411, allocations: 206.9 kB / 397.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.993/2.234, allocations: 0 / 397.3 MB, free: 12.16 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat does not exist to compare? outputFormat=mat