Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001131/0.001132, allocations: 87.88 kB / 16.31 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001404/0.001404, allocations: 178.3 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.395/1.395, allocations: 223.3 MB / 241.2 MB, free: 5.352 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002415/0.0002416, allocations: 8 kB / 300.9 MB, free: 6.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0994/0.09966, allocations: 50.42 MB / 351.3 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.002286/0.102, allocations: 1.936 MB / 353.3 MB, free: 9.633 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001174/0.1032, allocations: 0.7486 MB / 354 MB, free: 8.879 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001308/0.1033, allocations: 7.938 kB / 354 MB, free: 8.871 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002225/0.1036, allocations: 35.77 kB / 354.1 MB, free: 8.836 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001571/0.1037, allocations: 47.67 kB / 354.1 MB, free: 8.789 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004136/0.1042, allocations: 131.7 kB / 354.2 MB, free: 8.66 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000335/0.1045, allocations: 331.6 kB / 354.6 MB, free: 8.336 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001618/0.1047, allocations: 81.84 kB / 354.6 MB, free: 8.258 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001903/0.1049, allocations: 131.5 kB / 354.8 MB, free: 8.129 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001828/0.1051, allocations: 139.4 kB / 354.9 MB, free: 7.992 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.698e-05/0.1051, allocations: 20 kB / 354.9 MB, free: 7.973 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.597e-05/0.1052, allocations: 12 kB / 354.9 MB, free: 7.961 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.547e-05/0.1053, allocations: 79.77 kB / 355 MB, free: 7.883 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.012e-05/0.1053, allocations: 69.52 kB / 355.1 MB, free: 7.809 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002012/0.1055, allocations: 219.5 kB / 355.3 MB, free: 7.594 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.1055, allocations: 0 / 355.3 MB, free: 7.594 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1055, allocations: 0 / 355.3 MB, free: 7.594 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.439e-06/0.1056, allocations: 0 / 355.3 MB, free: 7.594 MB / 286.1 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.001003/0.1066, allocations: 0.581 MB / 355.9 MB, free: 6.965 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.1066, allocations: 11.97 kB / 355.9 MB, free: 6.953 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.441e-05/0.1067, allocations: 70.53 kB / 355.9 MB, free: 6.875 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.239e-05/0.1068, allocations: 39.58 kB / 356 MB, free: 6.836 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002931/0.1071, allocations: 271.1 kB / 356.3 MB, free: 6.531 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001803/0.1072, allocations: 145.6 kB / 356.4 MB, free: 6.371 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.011e-05/0.1073, allocations: 24 kB / 356.4 MB, free: 6.348 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001042/0.1084, allocations: 0.564 MB / 357 MB, free: 5.762 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.1084, allocations: 7.984 kB / 357 MB, free: 5.754 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.172e-05/0.1084, allocations: 12 kB / 357 MB, free: 5.742 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.1084, allocations: 8 kB / 357 MB, free: 5.734 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001237/0.1097, allocations: 0.5308 MB / 357.5 MB, free: 5.203 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001383/0.1111, allocations: 1.006 MB / 358.5 MB, free: 4.121 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001396/0.1125, allocations: 0.5147 MB / 359.1 MB, free: 3.57 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005645/0.1131, allocations: 273.2 kB / 359.3 MB, free: 3.293 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.088e-05/0.1131, allocations: 12.19 kB / 359.3 MB, free: 3.281 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.732e-05/0.1132, allocations: 46.69 kB / 359.4 MB, free: 3.227 MB / 286.1 MB Notification: Performance of pre-optimization done (n=44): time 2.224e-06/0.1132, allocations: 0 / 359.4 MB, free: 3.227 MB / 286.1 MB Notification: Performance of matching and sorting (n=72): time 0.03443/0.1476, allocations: 6.744 MB / 366.1 MB, free: 12.47 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/0.1478, allocations: 141 kB / 366.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002343/0.148, allocations: 195.2 kB / 366.5 MB, free: 12.1 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.349e-05/0.1481, allocations: 41.69 kB / 366.5 MB, free: 12.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.698e-05/0.1482, allocations: 137.5 kB / 366.6 MB, free: 11.92 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001907/0.1484, allocations: 193.3 kB / 366.8 MB, free: 11.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.863e-05/0.1485, allocations: 16 kB / 366.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.1486, allocations: 346.8 kB / 367.2 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001469/0.1501, allocations: 0.65 MB / 367.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001639/0.1518, allocations: 0.8353 MB / 368.7 MB, free: 9.801 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001413/0.1532, allocations: 0.5981 MB / 369.3 MB, free: 9.199 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.1532, allocations: 4.375 kB / 369.3 MB, free: 9.195 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003261/0.1565, allocations: 1.472 MB / 370.7 MB, free: 7.719 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.891e-05/0.1565, allocations: 8 kB / 370.7 MB, free: 7.711 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.538e-05/0.1566, allocations: 4.234 kB / 370.7 MB, free: 7.707 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.431e-05/0.1566, allocations: 15.94 kB / 370.8 MB, free: 7.691 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001256/0.1579, allocations: 227.7 kB / 371 MB, free: 7.469 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.928e-05/0.1579, allocations: 19.92 kB / 371 MB, free: 7.449 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008296/0.1587, allocations: 115.7 kB / 371.1 MB, free: 7.336 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.822e-05/0.1588, allocations: 35.97 kB / 371.2 MB, free: 7.301 MB / 302.1 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.0003472/0.1592, allocations: 189.5 kB / 371.3 MB, free: 7.105 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002909/0.1595, allocations: 149.2 kB / 371.5 MB, free: 6.953 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001813/0.1597, allocations: 67.3 kB / 371.5 MB, free: 6.891 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.798e-06/0.1597, allocations: 8 kB / 371.6 MB, free: 6.883 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-05/0.1597, allocations: 4 kB / 371.6 MB, free: 6.879 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.1597, allocations: 7.922 kB / 371.6 MB, free: 6.871 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0045/0.1642, allocations: 2.284 MB / 373.9 MB, free: 4.402 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.275e-05/0.1643, allocations: 12 kB / 373.9 MB, free: 4.391 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007295/0.165, allocations: 196.6 kB / 374.1 MB, free: 4.199 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.76e-05/0.165, allocations: 16 kB / 374.1 MB, free: 4.184 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.914e-05/0.1651, allocations: 23.98 kB / 374.1 MB, free: 4.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.431e-05/0.1651, allocations: 24.27 kB / 374.1 MB, free: 4.137 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.131e-05/0.1651, allocations: 19.94 kB / 374.1 MB, free: 4.117 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002851/0.168, allocations: 1.662 MB / 375.8 MB, free: 2.301 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001732/0.1682, allocations: 160.6 kB / 376 MB, free: 2.125 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.803e-05/0.1682, allocations: 31.98 kB / 376 MB, free: 2.094 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005588/0.1688, allocations: 91.98 kB / 376.1 MB, free: 2.004 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001777/0.169, allocations: 103.7 kB / 376.2 MB, free: 1.902 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.548e-05/0.169, allocations: 39.92 kB / 376.2 MB, free: 1.863 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001164/0.1692, allocations: 135.2 kB / 376.4 MB, free: 1.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1692, allocations: 0 / 376.4 MB, free: 1.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006598/0.1698, allocations: 120.2 kB / 376.5 MB, free: 1.613 MB / 302.1 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.003233/0.1731, allocations: 2.236 MB / 378.7 MB, free: 15.22 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002588/0.1757, allocations: 1.186 MB / 379.9 MB, free: 14.03 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.626e-06/0.1757, allocations: 5.375 kB / 379.9 MB, free: 14.03 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009524/0.1767, allocations: 373.9 kB / 380.3 MB, free: 13.66 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008836/0.1776, allocations: 144 kB / 380.4 MB, free: 13.52 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007775/0.1853, allocations: 4.232 MB / 384.6 MB, free: 9.027 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004177/0.1858, allocations: 0.8209 MB / 385.5 MB, free: 8.184 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006119/0.1864, allocations: 87.38 kB / 385.5 MB, free: 8.098 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003574/0.1868, allocations: 115.4 kB / 385.7 MB, free: 7.984 MB / 318.1 MB Notification: Performance of SimCode: time 1.182e-06/0.1868, allocations: 0 / 385.7 MB, free: 7.984 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02296/0.2097, allocations: 10.2 MB / 395.9 MB, free: 13.94 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001802/0.21, allocations: 194.1 kB / 396 MB, free: 13.7 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.057/2.267, allocations: 4.062 kB / 396 MB, free: 13.7 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat does not exist to compare? outputFormat=mat