Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.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.SubClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_SubClocked",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.001234/0.001234, allocations: 172.4 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.542/1.542, allocations: 205.4 MB / 222.3 MB, free: 9.023 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.000793/0.0007931, allocations: 90.3 kB / 270.7 MB, free: 8.254 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.07762/0.07762, allocations: 12.6 MB / 331.5 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003601/0.0003601, allocations: 8 kB / 392.8 MB, free: 65.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08742/0.08779, allocations: 50.38 MB / 443.1 MB, free: 15.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked): time 0.002465/0.09032, allocations: 2.022 MB / 445.2 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001474/0.09183, allocations: 0.8194 MB / 446 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001691/0.09201, allocations: 7.938 kB / 446 MB, free: 12.47 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000272/0.0923, allocations: 39.77 kB / 446 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001646/0.09247, allocations: 47.69 kB / 446.1 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004548/0.09294, allocations: 151.8 kB / 446.2 MB, free: 12.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002923/0.09324, allocations: 359.5 kB / 446.6 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002184/0.09346, allocations: 96.09 kB / 446.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001775/0.09365, allocations: 139.5 kB / 446.8 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001834/0.09384, allocations: 151.3 kB / 447 MB, free: 11.51 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.452e-05/0.09389, allocations: 16 kB / 447 MB, free: 11.49 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.643e-05/0.09394, allocations: 19.94 kB / 447 MB, free: 11.47 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.344e-05/0.09404, allocations: 75.78 kB / 447.1 MB, free: 11.4 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001228/0.09417, allocations: 152.9 kB / 447.2 MB, free: 11.24 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002382/0.09441, allocations: 302.8 kB / 447.5 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.09442, allocations: 0 / 447.5 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.345e-06/0.09443, allocations: 7.938 kB / 447.5 MB, free: 10.94 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.09445, allocations: 0 / 447.5 MB, free: 10.94 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001044/0.0955, allocations: 0.585 MB / 448.1 MB, free: 10.3 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/0.09556, allocations: 12.03 kB / 448.1 MB, free: 10.29 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.48e-05/0.09564, allocations: 66.73 kB / 448.2 MB, free: 10.22 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.188e-05/0.0957, allocations: 40.56 kB / 448.2 MB, free: 10.18 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003237/0.09603, allocations: 280.2 kB / 448.5 MB, free: 9.867 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001734/0.09622, allocations: 138.3 kB / 448.6 MB, free: 9.711 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.76e-05/0.09628, allocations: 28.38 kB / 448.7 MB, free: 9.684 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001063/0.09735, allocations: 0.597 MB / 449.2 MB, free: 9.059 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.214e-05/0.09743, allocations: 4 kB / 449.3 MB, free: 9.055 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.314e-05/0.09747, allocations: 8 kB / 449.3 MB, free: 9.047 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.16e-05/0.09749, allocations: 8 kB / 449.3 MB, free: 9.039 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00127/0.09877, allocations: 0.5308 MB / 449.8 MB, free: 8.508 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001322/0.1001, allocations: 1.033 MB / 450.8 MB, free: 7.395 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001435/0.1015, allocations: 0.5194 MB / 451.4 MB, free: 6.84 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005326/0.1021, allocations: 267.4 kB / 451.6 MB, free: 6.566 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.758e-05/0.1022, allocations: 20.12 kB / 451.6 MB, free: 6.547 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.349e-05/0.1022, allocations: 42.5 kB / 451.7 MB, free: 6.496 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 3.316e-06/0.1022, allocations: 3.984 kB / 451.7 MB, free: 6.492 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.03645/0.1386, allocations: 6.739 MB / 458.4 MB, free: 15.74 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001174/0.1388, allocations: 152.9 kB / 458.6 MB, free: 15.56 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000263/0.1391, allocations: 195.4 kB / 458.8 MB, free: 15.36 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.029e-05/0.1392, allocations: 37.7 kB / 458.8 MB, free: 15.31 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001193/0.1393, allocations: 145.5 kB / 458.9 MB, free: 15.17 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002219/0.1395, allocations: 193.3 kB / 459.1 MB, free: 14.98 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.122e-05/0.1396, allocations: 12 kB / 459.1 MB, free: 14.96 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.1398, allocations: 342.8 kB / 459.5 MB, free: 14.62 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001599/0.1414, allocations: 0.6543 MB / 460.1 MB, free: 13.96 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001736/0.1431, allocations: 0.8393 MB / 461 MB, free: 13.05 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003093/0.1462, allocations: 1.322 MB / 462.3 MB, free: 11.65 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.1462, allocations: 4 kB / 462.3 MB, free: 11.65 MB / 314.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003735/0.15, allocations: 1.476 MB / 463.8 MB, free: 10.17 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.818e-05/0.15, allocations: 11.94 kB / 463.8 MB, free: 10.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.08e-05/0.1501, allocations: 8 kB / 463.8 MB, free: 10.15 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.447e-05/0.1501, allocations: 8 kB / 463.8 MB, free: 10.14 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001386/0.1515, allocations: 227.7 kB / 464 MB, free: 9.918 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.506e-05/0.1516, allocations: 19.92 kB / 464 MB, free: 9.898 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000994/0.1526, allocations: 119.7 kB / 464.1 MB, free: 9.781 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001009/0.1527, allocations: 35.98 kB / 464.2 MB, free: 9.746 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.0003675/0.153, allocations: 173.7 kB / 464.4 MB, free: 9.566 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003436/0.1534, allocations: 157 kB / 464.5 MB, free: 9.406 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000153/0.1536, allocations: 67.3 kB / 464.6 MB, free: 9.34 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.785e-06/0.1536, allocations: 8 kB / 464.6 MB, free: 9.332 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/0.1536, allocations: 0 / 464.6 MB, free: 9.332 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.387e-06/0.1536, allocations: 7.984 kB / 464.6 MB, free: 9.324 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00491/0.1585, allocations: 2.293 MB / 466.9 MB, free: 6.844 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-05/0.1586, allocations: 12.22 kB / 466.9 MB, free: 6.832 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000747/0.1593, allocations: 195.8 kB / 467.1 MB, free: 6.641 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.387e-05/0.1593, allocations: 16 kB / 467.1 MB, free: 6.625 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.357e-05/0.1594, allocations: 28 kB / 467.1 MB, free: 6.598 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.772e-05/0.1594, allocations: 23.92 kB / 467.2 MB, free: 6.574 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-05/0.1594, allocations: 19.88 kB / 467.2 MB, free: 6.555 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003186/0.1626, allocations: 1.658 MB / 468.8 MB, free: 4.75 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002133/0.1629, allocations: 156.7 kB / 469 MB, free: 4.578 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.848e-05/0.1629, allocations: 27.98 kB / 469 MB, free: 4.551 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005869/0.1635, allocations: 95.98 kB / 469.1 MB, free: 4.457 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001959/0.1637, allocations: 95.66 kB / 469.2 MB, free: 4.363 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.028e-05/0.1638, allocations: 28.19 kB / 469.2 MB, free: 4.336 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000123/0.1639, allocations: 153.2 kB / 469.4 MB, free: 4.188 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.563e-06/0.1639, allocations: 3.938 kB / 469.4 MB, free: 4.184 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006453/0.1646, allocations: 123.9 kB / 469.5 MB, free: 4.062 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.003356/0.1679, allocations: 2.234 MB / 471.7 MB, free: 1.672 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002744/0.1707, allocations: 1.195 MB / 472.9 MB, free: 484 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.144e-06/0.1707, allocations: 4.375 kB / 472.9 MB, free: 480 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009777/0.1717, allocations: 377.9 kB / 473.3 MB, free: 104 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009934/0.1727, allocations: 148 kB / 473.4 MB, free: 15.95 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01306/0.1858, allocations: 7.18 MB / 480.6 MB, free: 8.281 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004621/0.1863, allocations: 0.8168 MB / 481.4 MB, free: 7.438 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006263/0.1869, allocations: 91.38 kB / 481.5 MB, free: 7.344 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003825/0.1873, allocations: 111.4 kB / 481.6 MB, free: 7.234 MB / 330.7 MB Notification: Performance of SimCode: time 8.71e-07/0.1873, allocations: 4 kB / 481.6 MB, free: 7.23 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1931/0.3804, allocations: 10.4 MB / 492 MB, free: 51.62 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001826/0.3807, allocations: 225.5 kB / 492.3 MB, free: 51.37 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.237/2.618, allocations: 0 / 492.3 MB, free: 51.37 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_SubClocked_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked_res.mat does not exist to compare? outputFormat=mat