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.001197/0.001197, allocations: 87.69 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.001214/0.001214, allocations: 183.4 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.385/1.385, allocations: 223.2 MB / 241.2 MB, free: 5.309 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002711/0.0002712, allocations: 4.938 kB / 300.9 MB, free: 5.574 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1164, allocations: 50.42 MB / 351.3 MB, free: 11.42 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.002517/0.119, allocations: 1.959 MB / 353.3 MB, free: 9.441 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001399/0.1204, allocations: 0.772 MB / 354.1 MB, free: 8.664 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001534/0.1206, allocations: 7.938 kB / 354.1 MB, free: 8.656 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002541/0.1208, allocations: 35.75 kB / 354.1 MB, free: 8.621 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001695/0.121, allocations: 47.69 kB / 354.1 MB, free: 8.574 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000475/0.1215, allocations: 143.1 kB / 354.3 MB, free: 8.438 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003258/0.1218, allocations: 339.6 kB / 354.6 MB, free: 8.105 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001798/0.122, allocations: 86.09 kB / 354.7 MB, free: 8.023 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001954/0.1222, allocations: 135.5 kB / 354.8 MB, free: 7.891 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001971/0.1224, allocations: 139.4 kB / 355 MB, free: 7.754 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.263e-05/0.1225, allocations: 16 kB / 355 MB, free: 7.738 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.878e-05/0.1225, allocations: 19.94 kB / 355 MB, free: 7.719 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.734e-05/0.1226, allocations: 79.77 kB / 355.1 MB, free: 7.641 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.564e-05/0.1227, allocations: 73.52 kB / 355.2 MB, free: 7.562 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002214/0.1229, allocations: 223.4 kB / 355.4 MB, free: 7.344 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.81e-06/0.1229, allocations: 0 / 355.4 MB, free: 7.344 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1229, allocations: 0 / 355.4 MB, free: 7.344 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.1229, allocations: 0 / 355.4 MB, free: 7.344 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.001079/0.124, allocations: 0.5888 MB / 356 MB, free: 6.707 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.1241, allocations: 8.031 kB / 356 MB, free: 6.699 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.113e-05/0.1242, allocations: 74.53 kB / 356 MB, free: 6.617 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.898e-05/0.1242, allocations: 39.58 kB / 356.1 MB, free: 6.578 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003165/0.1246, allocations: 267.1 kB / 356.3 MB, free: 6.273 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001857/0.1248, allocations: 145.7 kB / 356.5 MB, free: 6.109 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.525e-05/0.1248, allocations: 35.91 kB / 356.5 MB, free: 6.074 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001084/0.1259, allocations: 0.566 MB / 357.1 MB, free: 5.484 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.799e-05/0.1259, allocations: 7.922 kB / 357.1 MB, free: 5.477 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.099e-05/0.126, allocations: 15.94 kB / 357.1 MB, free: 5.461 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.126, allocations: 8 kB / 357.1 MB, free: 5.453 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001222/0.1272, allocations: 0.5347 MB / 357.7 MB, free: 4.918 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001464/0.1287, allocations: 1.018 MB / 358.7 MB, free: 3.824 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001433/0.1301, allocations: 0.5192 MB / 359.2 MB, free: 3.27 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005689/0.1307, allocations: 267.8 kB / 359.5 MB, free: 2.996 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.082e-05/0.1308, allocations: 8.188 kB / 359.5 MB, free: 2.988 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.784e-05/0.1308, allocations: 42.73 kB / 359.5 MB, free: 2.938 MB / 286.1 MB Notification: Performance of pre-optimization done (n=44): time 2.284e-06/0.1308, allocations: 0 / 359.5 MB, free: 2.938 MB / 286.1 MB Notification: Performance of matching and sorting (n=72): time 0.03417/0.165, allocations: 6.747 MB / 366.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001192/0.1652, allocations: 148.9 kB / 366.4 MB, free: 12 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002423/0.1654, allocations: 195.4 kB / 366.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.397e-05/0.1655, allocations: 45.7 kB / 366.6 MB, free: 11.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.1656, allocations: 145.5 kB / 366.8 MB, free: 11.6 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001822/0.1658, allocations: 189.3 kB / 367 MB, free: 11.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.586e-05/0.1659, allocations: 12 kB / 367 MB, free: 11.4 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.166, allocations: 350.8 kB / 367.3 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001432/0.1675, allocations: 0.65 MB / 368 MB, free: 10.4 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00156/0.169, allocations: 0.8315 MB / 368.8 MB, free: 9.492 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001366/0.1704, allocations: 0.6059 MB / 369.4 MB, free: 8.887 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.1704, allocations: 0 / 369.4 MB, free: 8.887 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003166/0.1736, allocations: 1.464 MB / 370.9 MB, free: 7.418 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.637e-05/0.1736, allocations: 6.031 kB / 370.9 MB, free: 7.414 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.462e-05/0.1737, allocations: 12.03 kB / 370.9 MB, free: 7.406 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.195e-05/0.1737, allocations: 8 kB / 370.9 MB, free: 7.398 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001206/0.1749, allocations: 235.7 kB / 371.1 MB, free: 7.168 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.121e-05/0.1749, allocations: 8 kB / 371.1 MB, free: 7.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008437/0.1758, allocations: 127.7 kB / 371.3 MB, free: 7.035 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.619e-05/0.1759, allocations: 24 kB / 371.3 MB, free: 7.012 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.0003445/0.1762, allocations: 193.5 kB / 371.5 MB, free: 6.812 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003126/0.1765, allocations: 149.9 kB / 371.6 MB, free: 6.66 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001908/0.1767, allocations: 63.3 kB / 371.7 MB, free: 6.602 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.879e-06/0.1768, allocations: 8.094 kB / 371.7 MB, free: 6.594 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/0.1768, allocations: 7.938 kB / 371.7 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.769e-06/0.1768, allocations: 7.984 kB / 371.7 MB, free: 6.578 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004477/0.1813, allocations: 2.292 MB / 374 MB, free: 4.102 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.359e-05/0.1813, allocations: 8 kB / 374 MB, free: 4.094 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007065/0.182, allocations: 204.3 kB / 374.2 MB, free: 3.895 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.896e-05/0.1821, allocations: 16 kB / 374.2 MB, free: 3.879 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.034e-05/0.1821, allocations: 24 kB / 374.2 MB, free: 3.855 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-05/0.1821, allocations: 19.92 kB / 374.3 MB, free: 3.836 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.048e-05/0.1822, allocations: 15.94 kB / 374.3 MB, free: 3.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00294/0.1851, allocations: 1.674 MB / 375.9 MB, free: 1.992 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002039/0.1853, allocations: 156.7 kB / 376.1 MB, free: 1.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.593e-05/0.1854, allocations: 24 kB / 376.1 MB, free: 1.797 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005309/0.1859, allocations: 107.9 kB / 376.2 MB, free: 1.691 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001831/0.1861, allocations: 99.66 kB / 376.3 MB, free: 1.594 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.538e-05/0.1862, allocations: 32 kB / 376.4 MB, free: 1.562 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001276/0.1863, allocations: 136.1 kB / 376.5 MB, free: 1.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1863, allocations: 4 kB / 376.5 MB, free: 1.426 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000662/0.187, allocations: 120 kB / 376.6 MB, free: 1.309 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.003132/0.1901, allocations: 2.236 MB / 378.8 MB, free: 14.91 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002637/0.1928, allocations: 1.19 MB / 380 MB, free: 13.72 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.396e-06/0.1928, allocations: 0 / 380 MB, free: 13.72 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009622/0.1938, allocations: 379.3 kB / 380.4 MB, free: 13.35 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001004/0.1948, allocations: 144.2 kB / 380.5 MB, free: 13.21 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008233/0.203, allocations: 4.248 MB / 384.8 MB, free: 8.703 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004527/0.2035, allocations: 0.809 MB / 385.6 MB, free: 7.867 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006487/0.2042, allocations: 91.39 kB / 385.7 MB, free: 7.777 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003689/0.2046, allocations: 119.4 kB / 385.8 MB, free: 7.66 MB / 318.1 MB Notification: Performance of SimCode: time 1.252e-06/0.2046, allocations: 3.938 kB / 385.8 MB, free: 7.656 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02369/0.2283, allocations: 10.26 MB / 396.1 MB, free: 13.56 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003901/0.2287, allocations: 195.6 kB / 396.3 MB, free: 13.32 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.1/2.329, allocations: 0 / 396.3 MB, free: 13.32 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