Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.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.SuperSampled,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_SuperSampled",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.001986/0.001985, allocations: 181 kB / 8.049 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.255/2.255, allocations: 205.3 MB / 213.8 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00116/0.00116, allocations: 98.55 kB / 261.8 MB, free: 1.672 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.1209/0.1209, allocations: 12.6 MB / 322.4 MB, free: 15.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.786e-05/1.777e-05, allocations: 0 / 379 MB, free: 6.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3261/0.3262, allocations: 50.37 MB / 429.4 MB, free: 18.22 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1451/0.4714, allocations: 81.26 MB / 0.4987 GB, free: 0.8516 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003139/0.4718, allocations: 71.97 kB / 0.4988 GB, free: 0.7812 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03192/0.5037, allocations: 6.397 MB / 0.505 GB, free: 10.38 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.5038, allocations: 0 / 0.505 GB, free: 10.38 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.219e-05/0.5038, allocations: 4 kB / 0.505 GB, free: 10.38 MB / 362.7 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.001612/0.5054, allocations: 0.5685 MB / 0.5056 GB, free: 9.762 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.367e-05/0.5055, allocations: 16.03 kB / 0.5056 GB, free: 9.746 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001139/0.5056, allocations: 35.62 kB / 0.5056 GB, free: 9.711 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005114/0.5062, allocations: 277.5 kB / 0.5059 GB, free: 9.398 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002834/0.5065, allocations: 125.6 kB / 0.506 GB, free: 9.258 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.151e-05/0.5066, allocations: 20 kB / 0.506 GB, free: 9.238 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001122/0.5077, allocations: 401 kB / 0.5064 GB, free: 8.848 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001184/0.5089, allocations: 453.6 kB / 0.5068 GB, free: 8.375 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.812e-05/0.5089, allocations: 4 kB / 0.5068 GB, free: 8.371 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.475e-05/0.509, allocations: 4 kB / 0.5068 GB, free: 8.367 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.262e-05/0.509, allocations: 4 kB / 0.5068 GB, free: 8.363 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002298/0.5113, allocations: 0.9559 MB / 0.5078 GB, free: 7.34 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001417/0.5128, allocations: 390.9 kB / 0.5081 GB, free: 6.922 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004659/0.5133, allocations: 195.4 kB / 0.5083 GB, free: 6.719 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.546e-05/0.5134, allocations: 8 kB / 0.5083 GB, free: 6.711 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.629e-05/0.5134, allocations: 46.42 kB / 0.5084 GB, free: 6.656 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 3.958e-06/0.5134, allocations: 0 / 0.5084 GB, free: 6.656 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.01431/0.5277, allocations: 1.997 MB / 0.5103 GB, free: 4.652 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001269/0.5279, allocations: 148.9 kB / 0.5105 GB, free: 4.477 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003034/0.5282, allocations: 165.8 kB / 0.5106 GB, free: 4.309 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001158/0.5284, allocations: 29.78 kB / 0.5107 GB, free: 4.273 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.5285, allocations: 141.5 kB / 0.5108 GB, free: 4.133 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003321/0.5288, allocations: 193.3 kB / 0.511 GB, free: 3.941 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001026/0.529, allocations: 0 / 0.511 GB, free: 3.941 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.5291, allocations: 346.8 kB / 0.5113 GB, free: 3.594 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001178/0.5303, allocations: 465.5 kB / 0.5118 GB, free: 3.141 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00136/0.5317, allocations: 0.6329 MB / 0.5124 GB, free: 2.43 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001116/0.5328, allocations: 418 kB / 0.5128 GB, free: 2.02 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/0.5329, allocations: 0 / 0.5128 GB, free: 2.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002912/0.5358, allocations: 1.041 MB / 0.5138 GB, free: 0.9727 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.691e-05/0.5359, allocations: 8 kB / 0.5138 GB, free: 0.9648 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.822e-05/0.5359, allocations: 4 kB / 0.5138 GB, free: 0.9609 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.651e-05/0.5359, allocations: 12 kB / 0.5138 GB, free: 0.9492 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002588/0.5385, allocations: 232.3 kB / 0.514 GB, free: 0.7227 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.04e-05/0.5386, allocations: 8 kB / 0.514 GB, free: 0.7148 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00176/0.5404, allocations: 115.7 kB / 0.5142 GB, free: 0.6016 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001318/0.5405, allocations: 28 kB / 0.5142 GB, free: 0.5742 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.0003555/0.5409, allocations: 128.7 kB / 0.5143 GB, free: 452 kB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.3033/0.8442, allocations: 0.9022 MB / 0.5152 GB, free: 90.25 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002619/0.8445, allocations: 36.78 kB / 0.5152 GB, free: 90.25 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002597/0.8448, allocations: 51.11 kB / 0.5153 GB, free: 90.25 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.691e-05/0.8448, allocations: 6.969 kB / 0.5153 GB, free: 90.25 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.281e-05/0.8449, allocations: 2.344 kB / 0.5153 GB, free: 90.25 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.702e-05/0.8449, allocations: 5.094 kB / 0.5153 GB, free: 90.25 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006871/0.8518, allocations: 1.896 MB / 0.5171 GB, free: 89.65 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.641e-05/0.8519, allocations: 11.16 kB / 0.5171 GB, free: 89.65 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001658/0.8535, allocations: 205.7 kB / 0.5173 GB, free: 89.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.512e-05/0.8536, allocations: 17.09 kB / 0.5174 GB, free: 89.64 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.574e-05/0.8537, allocations: 19.59 kB / 0.5174 GB, free: 89.64 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.083e-05/0.8537, allocations: 21.22 kB / 0.5174 GB, free: 89.63 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.348e-05/0.8538, allocations: 15.62 kB / 0.5174 GB, free: 89.63 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00285/0.8566, allocations: 1.698 MB / 0.5191 GB, free: 88.11 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004078/0.8571, allocations: 168 kB / 0.5192 GB, free: 87.98 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001095/0.8572, allocations: 16.62 kB / 0.5192 GB, free: 87.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001143/0.8584, allocations: 86.73 kB / 0.5193 GB, free: 87.98 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003852/0.8588, allocations: 112.4 kB / 0.5194 GB, free: 87.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.741e-05/0.8589, allocations: 32.34 kB / 0.5195 GB, free: 87.93 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002076/0.8591, allocations: 135.5 kB / 0.5196 GB, free: 87.84 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.8591, allocations: 0 / 0.5196 GB, free: 87.84 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001133/0.8603, allocations: 100.9 kB / 0.5197 GB, free: 87.84 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.003733/0.864, allocations: 5.287 MB / 0.5249 GB, free: 82.7 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002408/0.8665, allocations: 0.8227 MB / 0.5257 GB, free: 82.28 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.861e-05/0.8666, allocations: 1.406 kB / 0.5257 GB, free: 82.28 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009282/0.8675, allocations: 217.7 kB / 0.5259 GB, free: 82.2 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001133/0.8687, allocations: 111.2 kB / 0.526 GB, free: 82.17 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004224/0.8729, allocations: 0.9995 MB / 0.5269 GB, free: 81.4 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004899/0.8735, allocations: 0.8216 MB / 0.5278 GB, free: 80.7 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001117/0.8746, allocations: 92.66 kB / 0.5278 GB, free: 80.66 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006533/0.8753, allocations: 113.7 kB / 0.5279 GB, free: 80.58 MB / 362.7 MB Notification: Performance of SimCode: time 1.713e-06/0.8753, allocations: 0 / 0.5279 GB, free: 80.58 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06317/0.9385, allocations: 9.921 MB / 0.5376 GB, free: 75.17 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002551/0.9388, allocations: 164.4 kB / 0.5378 GB, free: 74.98 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.897/3.836, allocations: 8.781 kB / 0.5378 GB, free: 74.97 MB / 362.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_SuperSampled_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled_res.mat does not exist to compare? outputFormat=mat