Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001259/0.001259, allocations: 175.8 kB / 15.82 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.701/1.701, allocations: 205.4 MB / 222 MB, free: 13.83 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009835/0.0009839, allocations: 98.2 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08373/0.08373, allocations: 12.6 MB / 331.2 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005455/0.0005457, allocations: 17.16 kB / 392.1 MB, free: 54.82 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0948/0.09537, allocations: 50.38 MB / 442.5 MB, free: 10.85 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled): time 0.002205/0.09761, allocations: 1.935 MB / 444.4 MB, free: 8.898 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001358/0.099, allocations: 0.7808 MB / 445.2 MB, free: 8.109 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002108/0.09924, allocations: 7.938 kB / 445.2 MB, free: 8.102 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002605/0.09951, allocations: 43.75 kB / 445.3 MB, free: 8.059 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002035/0.09974, allocations: 43.69 kB / 445.3 MB, free: 8.016 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005917/0.1003, allocations: 131.8 kB / 445.4 MB, free: 7.887 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003052/0.1007, allocations: 335.5 kB / 445.8 MB, free: 7.555 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001611/0.1008, allocations: 81.73 kB / 445.8 MB, free: 7.484 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002226/0.1011, allocations: 123.5 kB / 446 MB, free: 7.363 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002232/0.1013, allocations: 147.4 kB / 446.1 MB, free: 7.219 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.742e-05/0.1014, allocations: 20 kB / 446.1 MB, free: 7.199 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.666e-05/0.1014, allocations: 16 kB / 446.1 MB, free: 7.184 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.801e-05/0.1015, allocations: 75.7 kB / 446.2 MB, free: 7.109 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.189e-05/0.1015, allocations: 69.52 kB / 446.3 MB, free: 7.035 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001999/0.1018, allocations: 220.2 kB / 446.5 MB, free: 6.82 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.1018, allocations: 4 kB / 446.5 MB, free: 6.816 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1018, allocations: 0 / 446.5 MB, free: 6.816 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.293e-05/0.1018, allocations: 0 / 446.5 MB, free: 6.816 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001191/0.103, allocations: 0.581 MB / 447.1 MB, free: 6.184 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.1031, allocations: 12.03 kB / 447.1 MB, free: 6.172 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.977e-05/0.1031, allocations: 66.53 kB / 447.2 MB, free: 6.098 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.849e-05/0.1032, allocations: 39.62 kB / 447.2 MB, free: 6.059 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002961/0.1035, allocations: 263.1 kB / 447.5 MB, free: 5.762 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001658/0.1037, allocations: 141.6 kB / 447.6 MB, free: 5.605 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.929e-05/0.1037, allocations: 27.98 kB / 447.6 MB, free: 5.578 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001156/0.1049, allocations: 0.5571 MB / 448.2 MB, free: 4.992 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.078e-05/0.1049, allocations: 4 kB / 448.2 MB, free: 4.988 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.509e-05/0.105, allocations: 16 kB / 448.2 MB, free: 4.973 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.105, allocations: 11.95 kB / 448.2 MB, free: 4.961 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001261/0.1063, allocations: 0.5308 MB / 448.7 MB, free: 4.43 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001488/0.1078, allocations: 1.026 MB / 449.8 MB, free: 3.328 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001619/0.1094, allocations: 0.503 MB / 450.3 MB, free: 2.789 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005557/0.11, allocations: 275.8 kB / 450.5 MB, free: 2.508 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.672e-05/0.11, allocations: 12.27 kB / 450.5 MB, free: 2.496 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.577e-05/0.1101, allocations: 46.73 kB / 450.6 MB, free: 2.441 MB / 282.7 MB Notification: Performance of pre-optimization done (n=44): time 2.465e-06/0.1101, allocations: 0 / 450.6 MB, free: 2.441 MB / 282.7 MB Notification: Performance of matching and sorting (n=72): time 0.05148/0.1616, allocations: 6.744 MB / 457.3 MB, free: 11.68 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003208/0.1619, allocations: 149 kB / 457.5 MB, free: 11.51 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004017/0.1624, allocations: 198.5 kB / 457.7 MB, free: 11.3 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001647/0.1626, allocations: 37.7 kB / 457.7 MB, free: 11.26 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001781/0.1628, allocations: 141.5 kB / 457.9 MB, free: 11.12 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003476/0.1631, allocations: 185.4 kB / 458 MB, free: 10.94 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001131/0.1633, allocations: 12 kB / 458 MB, free: 10.93 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002123/0.1635, allocations: 350.7 kB / 458.4 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002578/0.1661, allocations: 0.65 MB / 459 MB, free: 9.922 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002013/0.1681, allocations: 0.8315 MB / 459.9 MB, free: 9.016 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001834/0.17, allocations: 0.602 MB / 460.5 MB, free: 8.414 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.91e-06/0.17, allocations: 0 / 460.5 MB, free: 8.414 MB / 298.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003763/0.1737, allocations: 1.468 MB / 461.9 MB, free: 6.938 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.279e-05/0.1738, allocations: 11.95 kB / 461.9 MB, free: 6.926 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.687e-05/0.1738, allocations: 8 kB / 462 MB, free: 6.918 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.288e-05/0.1739, allocations: 8 kB / 462 MB, free: 6.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001376/0.1752, allocations: 231.7 kB / 462.2 MB, free: 6.684 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-05/0.1753, allocations: 11.94 kB / 462.2 MB, free: 6.672 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001088/0.1764, allocations: 127.7 kB / 462.3 MB, free: 6.547 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.041e-05/0.1765, allocations: 27.98 kB / 462.4 MB, free: 6.52 MB / 298.7 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.0003623/0.1769, allocations: 189.4 kB / 462.5 MB, free: 6.324 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003487/0.1772, allocations: 149.5 kB / 462.7 MB, free: 6.172 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001782/0.1774, allocations: 67.27 kB / 462.8 MB, free: 6.105 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.079e-05/0.1775, allocations: 8 kB / 462.8 MB, free: 6.098 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.06e-05/0.1775, allocations: 0 / 462.8 MB, free: 6.098 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.001e-05/0.1776, allocations: 7.984 kB / 462.8 MB, free: 6.09 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005241/0.1828, allocations: 2.288 MB / 465.1 MB, free: 3.617 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.709e-05/0.1829, allocations: 12 kB / 465.1 MB, free: 3.605 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007859/0.1836, allocations: 204.5 kB / 465.3 MB, free: 3.406 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.947e-05/0.1837, allocations: 16 kB / 465.3 MB, free: 3.391 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.476e-05/0.1837, allocations: 31.95 kB / 465.3 MB, free: 3.359 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.437e-05/0.1838, allocations: 15.94 kB / 465.3 MB, free: 3.344 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.126e-05/0.1838, allocations: 20.2 kB / 465.3 MB, free: 3.324 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003324/0.1871, allocations: 1.654 MB / 467 MB, free: 1.52 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002549/0.1874, allocations: 168.6 kB / 467.2 MB, free: 1.336 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.896e-05/0.1875, allocations: 24 kB / 467.2 MB, free: 1.312 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006296/0.1881, allocations: 103.9 kB / 467.3 MB, free: 1.211 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000191/0.1883, allocations: 107.6 kB / 467.4 MB, free: 1.105 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.911e-05/0.1884, allocations: 28 kB / 467.4 MB, free: 1.078 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001568/0.1885, allocations: 144.3 kB / 467.6 MB, free: 0.9375 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.9e-07/0.1885, allocations: 0 / 467.6 MB, free: 0.9375 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009054/0.1895, allocations: 124 kB / 467.7 MB, free: 0.8164 MB / 298.7 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.004087/0.1936, allocations: 2.226 MB / 469.9 MB, free: 14.43 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004005/0.1976, allocations: 1.19 MB / 471.1 MB, free: 13.24 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.327e-06/0.1976, allocations: 0 / 471.1 MB, free: 13.24 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001427/0.199, allocations: 383.2 kB / 471.5 MB, free: 12.87 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00136/0.2004, allocations: 136 kB / 471.6 MB, free: 12.73 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01289/0.2133, allocations: 4.236 MB / 475.8 MB, free: 8.238 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005521/0.2139, allocations: 0.8132 MB / 476.7 MB, free: 7.402 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001004/0.2149, allocations: 95.36 kB / 476.8 MB, free: 7.305 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000545/0.2156, allocations: 111.9 kB / 476.9 MB, free: 7.195 MB / 314.7 MB Notification: Performance of SimCode: time 9.21e-07/0.2156, allocations: 0 / 476.9 MB, free: 7.195 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03122/0.2468, allocations: 10.22 MB / 487.1 MB, free: 12.97 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002524/0.2471, allocations: 212.5 kB / 487.3 MB, free: 12.73 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.395/2.643, allocations: 0 / 487.3 MB, free: 12.73 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_SuperSampled_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled_res.mat does not exist to compare? outputFormat=mat