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.001647/0.001646, allocations: 183.7 kB / 15.81 MB, free: 6.348 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.279/2.279, allocations: 205.4 MB / 221.9 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.001164/0.001164, allocations: 90.8 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.1005/0.1005, allocations: 12.59 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008778/0.000878, allocations: 17.66 kB / 392.1 MB, free: 54.82 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1329, allocations: 50.37 MB / 442.5 MB, free: 10.81 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled): time 0.004333/0.1373, allocations: 1.909 MB / 444.4 MB, free: 8.887 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002584/0.1399, allocations: 0.7769 MB / 445.2 MB, free: 8.102 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003012/0.1403, allocations: 7.938 kB / 445.2 MB, free: 8.094 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003327/0.1406, allocations: 39.77 kB / 445.2 MB, free: 8.055 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003763/0.141, allocations: 51.78 kB / 445.3 MB, free: 8.004 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001029/0.1421, allocations: 135.7 kB / 445.4 MB, free: 7.871 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005526/0.1427, allocations: 216 kB / 445.6 MB, free: 7.656 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002836/0.143, allocations: 77.75 kB / 445.7 MB, free: 7.59 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003715/0.1434, allocations: 127.5 kB / 445.8 MB, free: 7.465 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003507/0.1437, allocations: 147.4 kB / 445.9 MB, free: 7.32 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.371e-05/0.1438, allocations: 20 kB / 446 MB, free: 7.301 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.978e-05/0.1439, allocations: 16 kB / 446 MB, free: 7.285 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001417/0.1441, allocations: 71.72 kB / 446 MB, free: 7.215 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.711e-05/0.1442, allocations: 69.56 kB / 446.1 MB, free: 7.141 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004201/0.1447, allocations: 220.2 kB / 446.3 MB, free: 6.926 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.1447, allocations: 7.938 kB / 446.3 MB, free: 6.918 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.649e-06/0.1447, allocations: 0 / 446.3 MB, free: 6.918 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.096e-06/0.1447, allocations: 7.938 kB / 446.3 MB, free: 6.91 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.002288/0.147, allocations: 0.5693 MB / 446.9 MB, free: 6.289 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.831e-05/0.1471, allocations: 12.03 kB / 446.9 MB, free: 6.277 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001412/0.1473, allocations: 70.53 kB / 447 MB, free: 6.199 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001306/0.1474, allocations: 39.62 kB / 447 MB, free: 6.16 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005728/0.148, allocations: 267.1 kB / 447.3 MB, free: 5.859 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004091/0.1485, allocations: 141.6 kB / 447.4 MB, free: 5.703 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001201/0.1486, allocations: 28 kB / 447.5 MB, free: 5.676 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002692/0.1513, allocations: 0.561 MB / 448 MB, free: 5.086 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.214e-05/0.1514, allocations: 4 kB / 448 MB, free: 5.082 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.954e-05/0.1515, allocations: 12 kB / 448 MB, free: 5.07 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.395e-05/0.1515, allocations: 11.95 kB / 448 MB, free: 5.059 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00354/0.1551, allocations: 0.5307 MB / 448.6 MB, free: 4.527 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003171/0.1583, allocations: 1.022 MB / 449.6 MB, free: 3.43 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004029/0.1624, allocations: 0.5147 MB / 450.1 MB, free: 2.879 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001169/0.1626, allocations: 12.12 kB / 450.1 MB, free: 2.867 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.83e-05/0.1626, allocations: 42.83 kB / 450.2 MB, free: 2.816 MB / 282.7 MB Notification: Performance of pre-optimization done (n=44): time 4.789e-06/0.1626, allocations: 0 / 450.2 MB, free: 2.816 MB / 282.7 MB Notification: Performance of matching and sorting (n=72): time 0.09748/0.2601, allocations: 6.744 MB / 456.9 MB, free: 12.06 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001764/0.2604, allocations: 152.9 kB / 457.1 MB, free: 11.88 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003215/0.2607, allocations: 190.6 kB / 457.3 MB, free: 11.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001441/0.2609, allocations: 37.7 kB / 457.3 MB, free: 11.64 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001253/0.261, allocations: 141.5 kB / 457.4 MB, free: 11.5 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003065/0.2613, allocations: 185.4 kB / 457.6 MB, free: 11.32 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001175/0.2614, allocations: 12 kB / 457.6 MB, free: 11.3 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001871/0.2616, allocations: 346.8 kB / 458 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003117/0.2648, allocations: 0.65 MB / 458.6 MB, free: 10.3 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003328/0.2682, allocations: 0.8358 MB / 459.4 MB, free: 9.395 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003006/0.2712, allocations: 0.6021 MB / 460 MB, free: 8.793 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.257e-05/0.2713, allocations: 4 kB / 460 MB, free: 8.789 MB / 298.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.006893/0.2782, allocations: 1.46 MB / 461.5 MB, free: 7.32 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.302e-05/0.2783, allocations: 15.89 kB / 461.5 MB, free: 7.305 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.38e-05/0.2783, allocations: 8 kB / 461.5 MB, free: 7.297 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.805e-05/0.2783, allocations: 15.94 kB / 461.5 MB, free: 7.281 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002598/0.2809, allocations: 227.7 kB / 461.8 MB, free: 7.059 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.675e-05/0.281, allocations: 11.94 kB / 461.8 MB, free: 7.047 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001808/0.2828, allocations: 123.7 kB / 461.9 MB, free: 6.926 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001545/0.283, allocations: 31.98 kB / 461.9 MB, free: 6.895 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.00049/0.2835, allocations: 189.4 kB / 462.1 MB, free: 6.699 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000497/0.284, allocations: 157.1 kB / 462.3 MB, free: 6.539 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002045/0.2843, allocations: 59.27 kB / 462.3 MB, free: 6.48 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.34e-05/0.2843, allocations: 8 kB / 462.3 MB, free: 6.473 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.217e-05/0.2843, allocations: 4 kB / 462.3 MB, free: 6.469 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.114e-05/0.2843, allocations: 3.984 kB / 462.3 MB, free: 6.465 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00902/0.2934, allocations: 2.285 MB / 464.6 MB, free: 3.996 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-05/0.2934, allocations: 8.188 kB / 464.6 MB, free: 3.988 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001573/0.295, allocations: 207.7 kB / 464.8 MB, free: 3.785 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.517e-05/0.2951, allocations: 16 kB / 464.9 MB, free: 3.77 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.481e-05/0.2952, allocations: 32.19 kB / 464.9 MB, free: 3.738 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.524e-05/0.2952, allocations: 19.94 kB / 464.9 MB, free: 3.719 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-05/0.2952, allocations: 11.94 kB / 464.9 MB, free: 3.707 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006706/0.302, allocations: 2.17 MB / 467.1 MB, free: 1.117 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003698/0.3024, allocations: 168.6 kB / 467.3 MB, free: 0.9336 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001105/0.3025, allocations: 24 kB / 467.3 MB, free: 0.9102 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001047/0.3036, allocations: 99.91 kB / 467.4 MB, free: 0.8125 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003435/0.3039, allocations: 103.7 kB / 467.5 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.044e-05/0.304, allocations: 32 kB / 467.5 MB, free: 0.6797 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002082/0.3042, allocations: 148.5 kB / 467.7 MB, free: 0.5352 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.2e-07/0.3042, allocations: 0 / 467.7 MB, free: 0.5352 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009984/0.3053, allocations: 119.9 kB / 467.8 MB, free: 428 kB / 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.008279/0.3135, allocations: 5.763 MB / 473.5 MB, free: 10.33 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.005468/0.3191, allocations: 1.199 MB / 474.7 MB, free: 9.129 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.304e-05/0.3191, allocations: 0 / 474.7 MB, free: 9.129 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002026/0.3212, allocations: 378 kB / 475.1 MB, free: 8.762 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001042/0.3222, allocations: 132 kB / 475.2 MB, free: 8.633 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01743/0.3397, allocations: 7.819 MB / 483 MB, free: 0.5195 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006026/0.3404, allocations: 0.8171 MB / 483.9 MB, free: 15.68 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001046/0.3414, allocations: 91.36 kB / 484 MB, free: 15.59 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006547/0.3421, allocations: 115.4 kB / 484.1 MB, free: 15.47 MB / 330.7 MB Notification: Performance of SimCode: time 1.292e-06/0.3421, allocations: 0 / 484.1 MB, free: 15.47 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.054/0.3961, allocations: 10.21 MB / 494.3 MB, free: 5.254 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003576/0.3965, allocations: 198.3 kB / 494.5 MB, free: 5.02 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.03/3.427, allocations: 3.969 kB / 494.5 MB, free: 5.016 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