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.001018/0.001018, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 225.6 MB / 234.8 MB, free: 3.23 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008683/0.0008681, allocations: 99.64 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.828e-05/1.82e-05, allocations: 0 / 343.8 MB, free: 8.191 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1088, allocations: 51.48 MB / 395.3 MB, free: 4.672 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3801/0.4889, allocations: 80.99 MB / 476.2 MB, free: 11.19 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000223/0.4892, allocations: 74.28 kB / 476.3 MB, free: 11.16 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0195/0.5087, allocations: 7.241 MB / 483.6 MB, free: 5.883 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.5087, allocations: 0 / 483.6 MB, free: 5.883 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.817e-05/0.5088, allocations: 8 kB / 483.6 MB, free: 5.875 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.001045/0.5098, allocations: 0.5784 MB / 484.1 MB, free: 5.277 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.5099, allocations: 12.03 kB / 484.2 MB, free: 5.266 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001072/0.51, allocations: 35.62 kB / 484.2 MB, free: 5.23 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003355/0.5103, allocations: 265.1 kB / 484.4 MB, free: 4.953 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001799/0.5105, allocations: 138.7 kB / 484.6 MB, free: 4.805 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.889e-05/0.5106, allocations: 23.61 kB / 484.6 MB, free: 4.785 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006104/0.5112, allocations: 410 kB / 485 MB, free: 4.508 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000679/0.5119, allocations: 461.6 kB / 485.5 MB, free: 4.148 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.022e-05/0.5119, allocations: 4 kB / 485.5 MB, free: 4.145 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.067e-05/0.512, allocations: 0 / 485.5 MB, free: 4.145 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.705e-06/0.512, allocations: 8 kB / 485.5 MB, free: 4.137 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001248/0.5132, allocations: 0.9695 MB / 486.4 MB, free: 3.27 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009225/0.5142, allocations: 390.5 kB / 486.8 MB, free: 2.957 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002614/0.5145, allocations: 199.4 kB / 487 MB, free: 2.824 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.099e-05/0.5145, allocations: 11.94 kB / 487 MB, free: 2.812 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.161e-05/0.5146, allocations: 43.25 kB / 487.1 MB, free: 2.766 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 1.823e-06/0.5146, allocations: 0 / 487.1 MB, free: 2.766 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.00718/0.5217, allocations: 1.989 MB / 489.1 MB, free: 1.344 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.169e-05/0.5219, allocations: 148.9 kB / 489.2 MB, free: 1.164 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002095/0.5221, allocations: 176.1 kB / 489.4 MB, free: 1.008 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.33e-05/0.5222, allocations: 25.7 kB / 489.4 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.075e-05/0.5222, allocations: 136.1 kB / 489.5 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001697/0.5224, allocations: 188.2 kB / 489.7 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.777e-05/0.5225, allocations: 0 / 489.7 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.887e-05/0.5226, allocations: 349.2 kB / 490.1 MB, free: 368 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000566/0.5232, allocations: 470.9 kB / 490.5 MB, free: 144 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007335/0.5239, allocations: 0.628 MB / 491.1 MB, free: 15.69 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005745/0.5245, allocations: 415.2 kB / 491.5 MB, free: 15.46 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.564e-06/0.5245, allocations: 4 kB / 491.6 MB, free: 15.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001605/0.5261, allocations: 1.039 MB / 492.6 MB, free: 14.84 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.515e-05/0.5262, allocations: 11.98 kB / 492.6 MB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.333e-05/0.5262, allocations: 8 kB / 492.6 MB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.515e-05/0.5262, allocations: 8 kB / 492.6 MB, free: 14.81 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001387/0.5276, allocations: 230.5 kB / 492.8 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.975e-05/0.5276, allocations: 8 kB / 492.9 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001029/0.5287, allocations: 111.7 kB / 493 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.905e-05/0.5288, allocations: 26.5 kB / 493 MB, free: 14.45 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.0002661/0.529, allocations: 128.1 kB / 493.1 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001797/0.5309, allocations: 0.9075 MB / 494 MB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00015/0.531, allocations: 39.53 kB / 494.1 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001995/0.5312, allocations: 58.75 kB / 494.1 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.11e-05/0.5313, allocations: 8 kB / 494.1 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/0.5313, allocations: 0 / 494.1 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.127e-05/0.5313, allocations: 7.922 kB / 494.1 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003808/0.5351, allocations: 1.899 MB / 496 MB, free: 12.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.129e-05/0.5352, allocations: 12 kB / 496 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008259/0.536, allocations: 206.8 kB / 496.2 MB, free: 11.81 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.003e-05/0.536, allocations: 16 kB / 496.3 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.855e-05/0.5361, allocations: 12 kB / 496.3 MB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.826e-05/0.5361, allocations: 23.92 kB / 496.3 MB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.201e-05/0.5361, allocations: 12.08 kB / 496.3 MB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001883/0.538, allocations: 1.7 MB / 498 MB, free: 9.941 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002137/0.5383, allocations: 167.6 kB / 498.2 MB, free: 9.781 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.754e-05/0.5383, allocations: 16 kB / 498.2 MB, free: 9.766 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006652/0.539, allocations: 91.92 kB / 498.3 MB, free: 9.676 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002004/0.5392, allocations: 107 kB / 498.4 MB, free: 9.586 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.083e-05/0.5393, allocations: 31.83 kB / 498.4 MB, free: 9.559 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001514/0.5394, allocations: 144.3 kB / 498.6 MB, free: 9.438 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5395, allocations: 0 / 498.6 MB, free: 9.438 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007385/0.5402, allocations: 104 kB / 498.7 MB, free: 9.336 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.003393/0.5436, allocations: 5.296 MB / 0.4921 GB, free: 4.055 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001298/0.5449, allocations: 0.8261 MB / 0.4929 GB, free: 3.531 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/0.5449, allocations: 0 / 0.4929 GB, free: 3.531 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004265/0.5454, allocations: 215.5 kB / 0.4932 GB, free: 3.324 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006703/0.546, allocations: 110.3 kB / 0.4933 GB, free: 3.219 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002356/0.5484, allocations: 1.002 MB / 0.4942 GB, free: 2.047 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004509/0.5489, allocations: 0.8171 MB / 0.495 GB, free: 1.207 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006066/0.5495, allocations: 95.36 kB / 0.4951 GB, free: 1.113 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000374/0.5499, allocations: 117.2 kB / 0.4952 GB, free: 1 MB / 362.7 MB Notification: Performance of SimCode: time 5.41e-07/0.5499, allocations: 0 / 0.4952 GB, free: 1 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03377/0.5837, allocations: 9.967 MB / 0.505 GB, free: 7.086 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002057/0.5839, allocations: 155.4 kB / 0.5051 GB, free: 6.891 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.139/2.723, allocations: 0 / 0.5051 GB, free: 6.891 MB / 378.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