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.00102/0.001025, allocations: 173.1 kB / 16.14 MB, free: 5.656 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.513/1.513, allocations: 205.4 MB / 222.3 MB, free: 9.016 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.0008836/0.0008836, allocations: 90.38 kB / 270.7 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07385/0.07385, allocations: 12.59 MB / 331.5 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003486/0.0003487, allocations: 19.98 kB / 392.8 MB, free: 65.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08519/0.08556, allocations: 50.36 MB / 443.1 MB, free: 15.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled): time 0.002747/0.08838, allocations: 1.999 MB / 445.1 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001511/0.08993, allocations: 0.7999 MB / 445.9 MB, free: 12.51 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001806/0.09013, allocations: 3.938 kB / 445.9 MB, free: 12.51 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003774/0.09052, allocations: 35.77 kB / 446 MB, free: 12.47 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002106/0.09075, allocations: 43.75 kB / 446 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004662/0.09122, allocations: 163.8 kB / 446.2 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002846/0.09152, allocations: 347.6 kB / 446.5 MB, free: 11.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001749/0.0917, allocations: 91.41 kB / 446.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001606/0.09187, allocations: 135.5 kB / 446.7 MB, free: 11.71 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001796/0.09206, allocations: 151.3 kB / 446.9 MB, free: 11.56 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.207e-05/0.09211, allocations: 16 kB / 446.9 MB, free: 11.54 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.772e-05/0.09215, allocations: 16 kB / 446.9 MB, free: 11.53 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.918e-05/0.09224, allocations: 75.78 kB / 447 MB, free: 11.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001108/0.09236, allocations: 153 kB / 447.1 MB, free: 11.3 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002419/0.09261, allocations: 298.8 kB / 447.4 MB, free: 11 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.09263, allocations: 0 / 447.4 MB, free: 11 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.09264, allocations: 0 / 447.4 MB, free: 11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.09265, allocations: 0 / 447.4 MB, free: 11 MB / 298.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.0009999/0.09365, allocations: 0.5734 MB / 448 MB, free: 10.38 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/0.0937, allocations: 12.02 kB / 448 MB, free: 10.37 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.444e-05/0.09377, allocations: 70.73 kB / 448.1 MB, free: 10.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.647e-05/0.09384, allocations: 40.5 kB / 448.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002623/0.09411, allocations: 272.3 kB / 448.4 MB, free: 9.949 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001675/0.09428, allocations: 142.2 kB / 448.5 MB, free: 9.793 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.372e-05/0.09435, allocations: 28.38 kB / 448.6 MB, free: 9.766 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009648/0.09532, allocations: 0.5684 MB / 449.1 MB, free: 9.168 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.721e-05/0.09535, allocations: 0 / 449.1 MB, free: 9.168 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.102e-05/0.09538, allocations: 12 kB / 449.1 MB, free: 9.156 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.0954, allocations: 4 kB / 449.1 MB, free: 9.152 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001198/0.0966, allocations: 0.5347 MB / 449.7 MB, free: 8.617 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001203/0.09781, allocations: 1.033 MB / 450.7 MB, free: 7.508 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00137/0.0992, allocations: 0.5141 MB / 451.2 MB, free: 6.957 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005314/0.09974, allocations: 271.4 kB / 451.5 MB, free: 6.68 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.328e-05/0.09979, allocations: 7.984 kB / 451.5 MB, free: 6.672 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.845e-05/0.09982, allocations: 42.5 kB / 451.5 MB, free: 6.621 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 1.673e-06/0.09983, allocations: 4 kB / 451.5 MB, free: 6.617 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.03698/0.1368, allocations: 6.749 MB / 458.3 MB, free: 15.85 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001167/0.137, allocations: 148.9 kB / 458.4 MB, free: 15.67 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003124/0.1373, allocations: 186.7 kB / 458.6 MB, free: 15.48 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.943e-05/0.1374, allocations: 41.7 kB / 458.7 MB, free: 15.43 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001148/0.1375, allocations: 141.5 kB / 458.8 MB, free: 15.29 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002166/0.1377, allocations: 189.2 kB / 459 MB, free: 15.11 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.253e-05/0.1378, allocations: 19.94 kB / 459 MB, free: 15.09 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001887/0.138, allocations: 346.8 kB / 459.3 MB, free: 14.74 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001562/0.1396, allocations: 0.6539 MB / 460 MB, free: 14.09 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001783/0.1414, allocations: 0.8323 MB / 460.8 MB, free: 13.18 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003161/0.1446, allocations: 1.326 MB / 462.1 MB, free: 11.77 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.1446, allocations: 3.938 kB / 462.1 MB, free: 11.77 MB / 314.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003626/0.1482, allocations: 1.476 MB / 463.6 MB, free: 10.29 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.666e-05/0.1482, allocations: 12.36 kB / 463.6 MB, free: 10.28 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.445e-05/0.1483, allocations: 4 kB / 463.6 MB, free: 10.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.818e-05/0.1483, allocations: 12 kB / 463.7 MB, free: 10.26 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001354/0.1497, allocations: 227.7 kB / 463.9 MB, free: 10.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.836e-05/0.1497, allocations: 15.88 kB / 463.9 MB, free: 10.02 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009205/0.1506, allocations: 123.7 kB / 464 MB, free: 9.902 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.97e-05/0.1507, allocations: 32 kB / 464 MB, free: 9.871 MB / 314.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003375/0.1511, allocations: 177.6 kB / 464.2 MB, free: 9.688 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002928/0.1514, allocations: 153.2 kB / 464.4 MB, free: 9.531 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001595/0.1515, allocations: 71.3 kB / 464.4 MB, free: 9.461 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.678e-06/0.1515, allocations: 8 kB / 464.4 MB, free: 9.453 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.859e-06/0.1516, allocations: 0 / 464.4 MB, free: 9.453 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.119e-05/0.1516, allocations: 3.984 kB / 464.4 MB, free: 9.449 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004828/0.1564, allocations: 2.289 MB / 466.7 MB, free: 6.977 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.269e-05/0.1564, allocations: 12 kB / 466.7 MB, free: 6.965 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007566/0.1572, allocations: 204.2 kB / 466.9 MB, free: 6.766 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.105e-05/0.1573, allocations: 15.94 kB / 467 MB, free: 6.75 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.46e-05/0.1573, allocations: 24 kB / 467 MB, free: 6.727 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.388e-05/0.1573, allocations: 19.92 kB / 467 MB, free: 6.707 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-05/0.1573, allocations: 15.94 kB / 467 MB, free: 6.691 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003135/0.1605, allocations: 1.662 MB / 468.7 MB, free: 4.875 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001952/0.1607, allocations: 160.7 kB / 468.8 MB, free: 4.699 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.691e-05/0.1608, allocations: 35.98 kB / 468.9 MB, free: 4.664 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006306/0.1614, allocations: 95.92 kB / 469 MB, free: 4.57 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000217/0.1616, allocations: 95.83 kB / 469.1 MB, free: 4.477 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.233e-05/0.1617, allocations: 35.94 kB / 469.1 MB, free: 4.441 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001319/0.1619, allocations: 144.3 kB / 469.2 MB, free: 4.301 MB / 314.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1619, allocations: 0 / 469.2 MB, free: 4.301 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007618/0.1626, allocations: 124 kB / 469.4 MB, free: 4.18 MB / 314.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003629/0.1663, allocations: 2.246 MB / 471.6 MB, free: 1.777 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002783/0.1691, allocations: 1.198 MB / 472.8 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.1691, allocations: 0 / 472.8 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009796/0.1701, allocations: 378.9 kB / 473.2 MB, free: 216 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001/0.1711, allocations: 148.1 kB / 473.3 MB, free: 68 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01314/0.1842, allocations: 7.165 MB / 480.5 MB, free: 8.402 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004746/0.1847, allocations: 0.8051 MB / 481.3 MB, free: 7.574 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006499/0.1854, allocations: 95.36 kB / 481.4 MB, free: 7.477 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004021/0.1858, allocations: 115.4 kB / 481.5 MB, free: 7.363 MB / 330.7 MB Notification: Performance of SimCode: time 6.52e-07/0.1858, allocations: 0 / 481.5 MB, free: 7.363 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.188/0.3738, allocations: 10.32 MB / 491.8 MB, free: 51.48 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000157/0.374, allocations: 232 kB / 492 MB, free: 51.23 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.273/2.647, allocations: 1.156 kB / 492 MB, free: 51.23 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