Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.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.AbsoluteClocks,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_AbsoluteClocks",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.00191/0.00191, 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.642/1.642, 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.00079/0.0007902, 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.07931/0.07931, allocations: 12.6 MB / 331.2 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004589/0.000459, allocations: 17.16 kB / 392.1 MB, free: 54.82 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09177/0.09226, allocations: 50.38 MB / 442.5 MB, free: 10.85 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.002163/0.09447, allocations: 1.986 MB / 444.5 MB, free: 8.848 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001147/0.09563, allocations: 0.8431 MB / 445.3 MB, free: 7.996 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001437/0.09582, allocations: 7.938 kB / 445.3 MB, free: 7.988 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000227/0.09606, allocations: 51.69 kB / 445.4 MB, free: 7.938 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001531/0.09622, allocations: 51.67 kB / 445.4 MB, free: 7.887 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004264/0.09666, allocations: 159.7 kB / 445.6 MB, free: 7.73 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002348/0.0969, allocations: 355.5 kB / 445.9 MB, free: 7.379 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001415/0.09705, allocations: 81.86 kB / 446 MB, free: 7.305 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001379/0.09719, allocations: 135.5 kB / 446.1 MB, free: 7.172 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001513/0.09735, allocations: 163.3 kB / 446.3 MB, free: 7.012 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.324e-05/0.0974, allocations: 16 kB / 446.3 MB, free: 6.996 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.833e-05/0.09744, allocations: 16 kB / 446.3 MB, free: 6.98 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00012/0.09757, allocations: 83.7 kB / 446.4 MB, free: 6.898 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001181/0.09771, allocations: 73.52 kB / 446.5 MB, free: 6.82 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001677/0.09788, allocations: 252.1 kB / 446.7 MB, free: 6.574 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.09789, allocations: 0 / 446.7 MB, free: 6.574 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.0979, allocations: 0 / 446.7 MB, free: 6.574 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.09791, allocations: 4 kB / 446.7 MB, free: 6.57 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0009653/0.09888, allocations: 0.6275 MB / 447.4 MB, free: 5.895 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.09892, allocations: 8.031 kB / 447.4 MB, free: 5.887 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.552e-05/0.099, allocations: 74.53 kB / 447.4 MB, free: 5.805 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.229e-05/0.09906, allocations: 43.53 kB / 447.5 MB, free: 5.762 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002808/0.09935, allocations: 297.9 kB / 447.8 MB, free: 5.434 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001558/0.09951, allocations: 149.7 kB / 447.9 MB, free: 5.266 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.781e-05/0.09958, allocations: 28 kB / 448 MB, free: 5.238 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001093/0.1007, allocations: 0.5737 MB / 448.5 MB, free: 4.637 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.714e-05/0.1007, allocations: 7.938 kB / 448.5 MB, free: 4.629 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.109e-05/0.1008, allocations: 12 kB / 448.5 MB, free: 4.617 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.1008, allocations: 11.95 kB / 448.6 MB, free: 4.605 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001208/0.102, allocations: 0.5308 MB / 449.1 MB, free: 4.074 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001177/0.1032, allocations: 1.041 MB / 450.1 MB, free: 2.957 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001374/0.1046, allocations: 0.5185 MB / 450.6 MB, free: 2.402 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005173/0.1051, allocations: 267.9 kB / 450.9 MB, free: 2.129 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.089e-05/0.1051, allocations: 12.17 kB / 450.9 MB, free: 2.117 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.639e-05/0.1052, allocations: 46.67 kB / 451 MB, free: 2.062 MB / 282.7 MB Notification: Performance of pre-optimization done (n=44): time 1.563e-06/0.1052, allocations: 0 / 451 MB, free: 2.062 MB / 282.7 MB Notification: Performance of matching and sorting (n=72): time 0.04048/0.1457, allocations: 6.775 MB / 457.7 MB, free: 11.27 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001376/0.1458, allocations: 149 kB / 457.9 MB, free: 11.09 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003792/0.1462, allocations: 266.5 kB / 458.1 MB, free: 10.82 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001278/0.1464, allocations: 33.7 kB / 458.2 MB, free: 10.79 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.1465, allocations: 149.5 kB / 458.3 MB, free: 10.64 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003751/0.1469, allocations: 193.3 kB / 458.5 MB, free: 10.45 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.655e-05/0.147, allocations: 16 kB / 458.5 MB, free: 10.43 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001874/0.1472, allocations: 342.8 kB / 458.9 MB, free: 10.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002309/0.1495, allocations: 0.6539 MB / 459.5 MB, free: 9.434 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002475/0.152, allocations: 0.8315 MB / 460.4 MB, free: 8.527 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002133/0.1542, allocations: 0.6021 MB / 461 MB, free: 7.926 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.261e-06/0.1542, allocations: 0 / 461 MB, free: 7.926 MB / 298.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.005131/0.1593, allocations: 1.468 MB / 462.4 MB, free: 6.449 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.941e-05/0.1594, allocations: 7.953 kB / 462.4 MB, free: 6.441 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.126e-05/0.1594, allocations: 8 kB / 462.4 MB, free: 6.434 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.263e-05/0.1595, allocations: 12 kB / 462.5 MB, free: 6.422 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001854/0.1613, allocations: 231.7 kB / 462.7 MB, free: 6.195 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.984e-05/0.1614, allocations: 8 kB / 462.7 MB, free: 6.188 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001351/0.1627, allocations: 131.7 kB / 462.8 MB, free: 6.059 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001313/0.1629, allocations: 24 kB / 462.8 MB, free: 6.035 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.0004586/0.1633, allocations: 197.4 kB / 463 MB, free: 5.832 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004621/0.1638, allocations: 165.4 kB / 463.2 MB, free: 5.664 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002162/0.164, allocations: 71.56 kB / 463.3 MB, free: 5.594 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.376e-05/0.1641, allocations: 8.234 kB / 463.3 MB, free: 5.586 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/0.1641, allocations: 0 / 463.3 MB, free: 5.586 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.235e-05/0.1641, allocations: 7.969 kB / 463.3 MB, free: 5.578 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006911/0.171, allocations: 2.305 MB / 465.6 MB, free: 3.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.321e-05/0.1711, allocations: 12 kB / 465.6 MB, free: 3.078 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001169/0.1723, allocations: 203.7 kB / 465.8 MB, free: 2.879 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-05/0.1723, allocations: 16 kB / 465.8 MB, free: 2.863 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.158e-05/0.1724, allocations: 27.95 kB / 465.8 MB, free: 2.836 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.713e-05/0.1724, allocations: 23.92 kB / 465.9 MB, free: 2.812 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.899e-05/0.1725, allocations: 16.2 kB / 465.9 MB, free: 2.797 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003876/0.1763, allocations: 1.674 MB / 467.5 MB, free: 0.9688 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002678/0.1766, allocations: 176.5 kB / 467.7 MB, free: 0.7773 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.923e-05/0.1767, allocations: 27.98 kB / 467.7 MB, free: 0.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006183/0.1774, allocations: 99.94 kB / 467.8 MB, free: 0.6523 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002082/0.1776, allocations: 103.7 kB / 467.9 MB, free: 0.5508 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.478e-05/0.1776, allocations: 31.98 kB / 468 MB, free: 0.5195 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002045/0.1778, allocations: 182 kB / 468.2 MB, free: 352 kB / 298.7 MB Notification: Performance of sort global known variables: time 3.3e-07/0.1779, allocations: 4 kB / 468.2 MB, free: 348 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008244/0.1787, allocations: 124 kB / 468.3 MB, free: 224 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.003844/0.1825, allocations: 2.226 MB / 470.5 MB, free: 13.84 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002893/0.1854, allocations: 1.187 MB / 471.7 MB, free: 12.65 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.1855, allocations: 4 kB / 471.7 MB, free: 12.65 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00101/0.1865, allocations: 374 kB / 472.1 MB, free: 12.29 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009398/0.1874, allocations: 148.7 kB / 472.2 MB, free: 12.14 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00927/0.1967, allocations: 4.397 MB / 476.6 MB, free: 7.484 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004789/0.1972, allocations: 0.8292 MB / 477.4 MB, free: 6.633 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006862/0.1979, allocations: 96.16 kB / 477.5 MB, free: 6.539 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004052/0.1984, allocations: 119.4 kB / 477.6 MB, free: 6.422 MB / 314.7 MB Notification: Performance of SimCode: time 7.11e-07/0.1984, allocations: 0 / 477.6 MB, free: 6.422 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02577/0.2242, allocations: 10.62 MB / 488.3 MB, free: 11.79 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001865/0.2244, allocations: 206.9 kB / 488.5 MB, free: 11.55 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.337/2.561, allocations: 0 / 488.5 MB, free: 11.55 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_AbsoluteClocks_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat does not exist to compare? outputFormat=mat