Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001988/0.001988, allocations: 195 kB / 14.16 MB, free: 1.152 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.535/1.535, allocations: 225.4 MB / 240.1 MB, free: 15.05 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008896/0.0008897, allocations: 83.25 kB / 292.1 MB, free: 5.98 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.655e-05/3.659e-05, allocations: 4 kB / 350.6 MB, free: 2.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1223, allocations: 51.48 MB / 402.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.385/0.5074, allocations: 81.66 MB / 483.8 MB, free: 7.465 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002377/0.5077, allocations: 73.09 kB / 483.8 MB, free: 7.43 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02038/0.5281, allocations: 7.285 MB / 491.1 MB, free: 1.336 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.5281, allocations: 0 / 491.1 MB, free: 1.336 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.647e-05/0.5282, allocations: 8 kB / 491.1 MB, free: 1.328 MB / 346.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.0009635/0.5291, allocations: 0.589 MB / 491.7 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.5292, allocations: 8.031 kB / 491.7 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.55e-05/0.5293, allocations: 71.67 kB / 491.8 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.757e-05/0.5294, allocations: 35.62 kB / 491.8 MB, free: 0.625 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003225/0.5297, allocations: 270.5 kB / 492.1 MB, free: 352 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001872/0.5299, allocations: 144.5 kB / 492.2 MB, free: 204 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.809e-05/0.53, allocations: 30.88 kB / 492.3 MB, free: 184 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008802/0.5308, allocations: 0.502 MB / 492.8 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.058e-05/0.5309, allocations: 3.75 kB / 492.8 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.73e-05/0.5309, allocations: 11.38 kB / 492.8 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.828e-06/0.5309, allocations: 4 kB / 492.8 MB, free: 15.78 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007184/0.5317, allocations: 415.5 kB / 493.2 MB, free: 15.5 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001645/0.5333, allocations: 1.019 MB / 494.2 MB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009827/0.5343, allocations: 422.5 kB / 494.6 MB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003225/0.5347, allocations: 211.8 kB / 494.8 MB, free: 14.1 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.222e-05/0.5347, allocations: 11.94 kB / 494.8 MB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.192e-05/0.5348, allocations: 40.5 kB / 494.9 MB, free: 14.05 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 2.094e-06/0.5348, allocations: 0 / 494.9 MB, free: 14.05 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.008161/0.543, allocations: 2.074 MB / 497 MB, free: 11.97 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001301/0.5431, allocations: 148.9 kB / 497.1 MB, free: 11.79 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002545/0.5434, allocations: 187.1 kB / 497.3 MB, free: 11.6 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.296e-05/0.5435, allocations: 37.69 kB / 497.3 MB, free: 11.56 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.421e-05/0.5436, allocations: 137.5 kB / 497.5 MB, free: 11.42 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002635/0.5439, allocations: 209.2 kB / 497.7 MB, free: 11.21 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.479e-05/0.544, allocations: 12.56 kB / 497.7 MB, free: 11.2 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001748/0.5441, allocations: 346.8 kB / 498 MB, free: 10.86 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007614/0.5449, allocations: 477.5 kB / 498.5 MB, free: 10.39 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009089/0.5458, allocations: 0.6462 MB / 499.1 MB, free: 9.668 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007109/0.5465, allocations: 431.2 kB / 499.6 MB, free: 9.246 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.5465, allocations: 0 / 499.6 MB, free: 9.246 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002008/0.5486, allocations: 1.101 MB / 0.4889 GB, free: 8.141 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.652e-05/0.5486, allocations: 8 kB / 0.4889 GB, free: 8.133 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.465e-05/0.5486, allocations: 8.062 kB / 0.4889 GB, free: 8.125 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.965e-05/0.5487, allocations: 12 kB / 0.4889 GB, free: 8.113 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001458/0.5502, allocations: 231.6 kB / 0.4892 GB, free: 7.887 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.991e-05/0.5502, allocations: 20.66 kB / 0.4892 GB, free: 7.867 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001009/0.5512, allocations: 120.4 kB / 0.4893 GB, free: 7.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.725e-05/0.5513, allocations: 35.98 kB / 0.4893 GB, free: 7.715 MB / 362.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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 84 * 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.0002712/0.5516, allocations: 140.8 kB / 0.4895 GB, free: 7.57 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003328/0.5519, allocations: 147 kB / 0.4896 GB, free: 7.422 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001986/0.5521, allocations: 63.09 kB / 0.4897 GB, free: 7.359 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.069e-05/0.5522, allocations: 8 kB / 0.4897 GB, free: 7.352 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.756e-06/0.5522, allocations: 0 / 0.4897 GB, free: 7.352 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.039e-05/0.5522, allocations: 14.88 kB / 0.4897 GB, free: 7.34 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003791/0.556, allocations: 2.019 MB / 0.4917 GB, free: 5.137 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.497e-05/0.556, allocations: 12.97 kB / 0.4917 GB, free: 5.125 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007991/0.5568, allocations: 205.2 kB / 0.4919 GB, free: 4.926 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.781e-05/0.5569, allocations: 16 kB / 0.4919 GB, free: 4.91 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.314e-05/0.5569, allocations: 20 kB / 0.4919 GB, free: 4.891 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.95e-05/0.5569, allocations: 28.94 kB / 0.4919 GB, free: 4.863 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.4e-05/0.557, allocations: 15.94 kB / 0.4919 GB, free: 4.848 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00198/0.559, allocations: 1.751 MB / 0.4937 GB, free: 2.672 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002083/0.5592, allocations: 168.6 kB / 0.4938 GB, free: 2.488 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.771e-05/0.5593, allocations: 28.08 kB / 0.4938 GB, free: 2.461 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006559/0.5599, allocations: 95.98 kB / 0.4939 GB, free: 2.367 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002003/0.5601, allocations: 111.6 kB / 0.494 GB, free: 2.258 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.056e-05/0.5602, allocations: 31.98 kB / 0.4941 GB, free: 2.227 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001366/0.5603, allocations: 149.2 kB / 0.4942 GB, free: 2.082 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.603e-06/0.5603, allocations: 6.156 kB / 0.4942 GB, free: 2.078 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00065/0.561, allocations: 127.9 kB / 0.4943 GB, free: 1.953 MB / 362.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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.003186/0.5642, allocations: 5.357 MB / 0.4996 GB, free: 12.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001422/0.5656, allocations: 0.8752 MB / 0.5004 GB, free: 11.41 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.391e-06/0.5656, allocations: 0 / 0.5004 GB, free: 11.41 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004311/0.5661, allocations: 234.5 kB / 0.5007 GB, free: 11.18 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006097/0.5667, allocations: 123.3 kB / 0.5008 GB, free: 11.06 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002305/0.569, allocations: 1.076 MB / 0.5018 GB, free: 9.82 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003481/0.5694, allocations: 0.8246 MB / 0.5026 GB, free: 8.969 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00058/0.57, allocations: 87.38 kB / 0.5027 GB, free: 8.879 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003581/0.5703, allocations: 115.4 kB / 0.5028 GB, free: 8.766 MB / 378.7 MB Notification: Performance of SimCode: time 8.82e-07/0.5703, allocations: 0 / 0.5028 GB, free: 8.766 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02443/0.5948, allocations: 10.39 MB / 0.513 GB, free: 14.58 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001704/0.595, allocations: 173 kB / 0.5131 GB, free: 14.35 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.182/2.777, allocations: 0 / 0.5131 GB, free: 14.35 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat does not exist to compare? outputFormat=mat