Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.SubClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",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.00118/0.00118, allocations: 93.83 kB / 16.3 MB, free: 5.992 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.00139/0.00139, allocations: 183.4 kB / 17.19 MB, free: 5.906 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.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002805/0.0002806, allocations: 10.3 kB / 300.8 MB, free: 6.488 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.117, allocations: 50.41 MB / 351.2 MB, free: 11.81 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.002685/0.1198, allocations: 1.939 MB / 353.2 MB, free: 9.852 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001443/0.1213, allocations: 0.7681 MB / 353.9 MB, free: 9.078 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001368/0.1214, allocations: 11.94 kB / 353.9 MB, free: 9.066 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002446/0.1217, allocations: 31.77 kB / 354 MB, free: 9.035 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000187/0.1219, allocations: 51.84 kB / 354 MB, free: 8.984 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000451/0.1223, allocations: 147.6 kB / 354.2 MB, free: 8.84 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003324/0.1227, allocations: 220 kB / 354.4 MB, free: 8.625 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002394/0.1229, allocations: 86.11 kB / 354.5 MB, free: 8.543 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000203/0.1231, allocations: 131.5 kB / 354.6 MB, free: 8.414 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003066/0.1234, allocations: 151.4 kB / 354.7 MB, free: 8.266 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.185e-05/0.1235, allocations: 16 kB / 354.7 MB, free: 8.25 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.063e-05/0.1235, allocations: 16 kB / 354.8 MB, free: 8.234 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.517e-05/0.1236, allocations: 71.8 kB / 354.8 MB, free: 8.164 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001458/0.1238, allocations: 69.52 kB / 354.9 MB, free: 8.09 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002502/0.124, allocations: 227.4 kB / 355.1 MB, free: 7.867 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.124, allocations: 0 / 355.1 MB, free: 7.867 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.156e-06/0.1241, allocations: 0 / 355.1 MB, free: 7.867 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.1241, allocations: 0 / 355.1 MB, free: 7.867 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.00122/0.1253, allocations: 0.5888 MB / 355.7 MB, free: 7.23 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.1254, allocations: 8.031 kB / 355.7 MB, free: 7.223 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.971e-05/0.1254, allocations: 74.52 kB / 355.8 MB, free: 7.141 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.232e-05/0.1255, allocations: 39.58 kB / 355.8 MB, free: 7.102 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004141/0.1259, allocations: 271.1 kB / 356.1 MB, free: 6.793 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000212/0.1262, allocations: 145.7 kB / 356.2 MB, free: 6.629 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.103e-05/0.1262, allocations: 31.91 kB / 356.3 MB, free: 6.598 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001224/0.1275, allocations: 0.5816 MB / 356.9 MB, free: 5.992 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.1275, allocations: 0 / 356.9 MB, free: 5.992 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.523e-05/0.1275, allocations: 12 kB / 356.9 MB, free: 5.98 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.278e-05/0.1275, allocations: 8 kB / 356.9 MB, free: 5.973 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001565/0.1291, allocations: 0.5347 MB / 357.4 MB, free: 5.438 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001906/0.131, allocations: 1.018 MB / 358.4 MB, free: 4.344 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001661/0.1327, allocations: 0.5185 MB / 358.9 MB, free: 3.789 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.268e-05/0.1328, allocations: 16.27 kB / 359 MB, free: 3.773 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.79e-05/0.1328, allocations: 34.75 kB / 359 MB, free: 3.73 MB / 286.1 MB Notification: Performance of pre-optimization done (n=44): time 1.844e-06/0.1328, allocations: 4 kB / 359 MB, free: 3.727 MB / 286.1 MB Notification: Performance of matching and sorting (n=72): time 0.03798/0.1708, allocations: 6.751 MB / 365.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001121/0.171, allocations: 144.9 kB / 365.9 MB, free: 12.79 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002535/0.1712, allocations: 195.4 kB / 366.1 MB, free: 12.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.76e-05/0.1713, allocations: 41.69 kB / 366.1 MB, free: 12.54 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.1714, allocations: 137.5 kB / 366.3 MB, free: 12.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002113/0.1717, allocations: 193.3 kB / 366.4 MB, free: 12.21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.843e-05/0.1717, allocations: 16 kB / 366.5 MB, free: 12.2 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.1719, allocations: 346.8 kB / 366.8 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001652/0.1735, allocations: 0.6461 MB / 367.4 MB, free: 11.2 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001795/0.1753, allocations: 0.8315 MB / 368.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001613/0.177, allocations: 0.61 MB / 368.9 MB, free: 9.688 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/0.177, allocations: 4 kB / 368.9 MB, free: 9.684 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003741/0.1807, allocations: 1.464 MB / 370.4 MB, free: 8.215 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.286e-05/0.1808, allocations: 8 kB / 370.4 MB, free: 8.207 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.833e-05/0.1808, allocations: 4 kB / 370.4 MB, free: 8.203 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.683e-05/0.1809, allocations: 16.03 kB / 370.4 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001326/0.1822, allocations: 227.7 kB / 370.6 MB, free: 7.965 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.523e-05/0.1822, allocations: 15.92 kB / 370.6 MB, free: 7.949 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001018/0.1833, allocations: 119.7 kB / 370.7 MB, free: 7.832 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.474e-05/0.1834, allocations: 32.36 kB / 370.8 MB, free: 7.801 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.0004424/0.1838, allocations: 181.5 kB / 370.9 MB, free: 7.613 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003749/0.1842, allocations: 153.2 kB / 371.1 MB, free: 7.457 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001611/0.1844, allocations: 67.3 kB / 371.2 MB, free: 7.395 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.745e-06/0.1844, allocations: 4 kB / 371.2 MB, free: 7.391 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/0.1844, allocations: 4 kB / 371.2 MB, free: 7.387 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.1844, allocations: 11.92 kB / 371.2 MB, free: 7.375 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005143/0.1896, allocations: 2.297 MB / 373.5 MB, free: 4.895 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.548e-05/0.1896, allocations: 8 kB / 373.5 MB, free: 4.887 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007703/0.1904, allocations: 203.8 kB / 373.7 MB, free: 4.688 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.78e-05/0.1904, allocations: 16 kB / 373.7 MB, free: 4.672 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.662e-05/0.1905, allocations: 23.98 kB / 373.7 MB, free: 4.648 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.842e-05/0.1905, allocations: 19.94 kB / 373.7 MB, free: 4.629 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.201e-05/0.1905, allocations: 15.94 kB / 373.8 MB, free: 4.613 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004171/0.1947, allocations: 2.177 MB / 375.9 MB, free: 2.012 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002826/0.195, allocations: 156.6 kB / 376.1 MB, free: 1.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.11e-05/0.1951, allocations: 27.98 kB / 376.1 MB, free: 1.812 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006022/0.1957, allocations: 104 kB / 376.2 MB, free: 1.711 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002133/0.1959, allocations: 107.6 kB / 376.3 MB, free: 1.605 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.529e-05/0.196, allocations: 32 kB / 376.4 MB, free: 1.574 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001907/0.1962, allocations: 140 kB / 376.5 MB, free: 1.438 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.1962, allocations: 0 / 376.5 MB, free: 1.438 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007667/0.197, allocations: 124 kB / 376.6 MB, free: 1.316 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.006889/0.2039, allocations: 5.759 MB / 382.4 MB, free: 11.23 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003094/0.207, allocations: 1.194 MB / 383.6 MB, free: 10.03 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.488e-05/0.207, allocations: 4 kB / 383.6 MB, free: 10.03 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001143/0.2082, allocations: 374.8 kB / 383.9 MB, free: 9.664 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007476/0.2089, allocations: 124.2 kB / 384.1 MB, free: 9.543 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01136/0.2203, allocations: 7.836 MB / 391.9 MB, free: 1.414 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005412/0.2209, allocations: 0.8284 MB / 392.7 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006091/0.2215, allocations: 87.39 kB / 392.8 MB, free: 484 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003633/0.2219, allocations: 115.4 kB / 392.9 MB, free: 368 kB / 318.1 MB Notification: Performance of SimCode: time 8.61e-07/0.2219, allocations: 4 kB / 392.9 MB, free: 364 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02377/0.2457, allocations: 10.25 MB / 403.2 MB, free: 6.273 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001778/0.2459, allocations: 199.1 kB / 403.4 MB, free: 6.027 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.003/2.249, allocations: 0 / 403.4 MB, free: 6.027 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat does not exist to compare? outputFormat=mat