Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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.AbsoluteClocks,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009923/0.0009924, allocations: 198.5 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.18/1.18, allocations: 227.2 MB / 245 MB, free: 7.617 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008346/0.0008345, allocations: 101.3 kB / 297.3 MB, free: 6.219 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002004/0.0002004, allocations: 4 kB / 358 MB, free: 9.469 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1764/0.1766, allocations: 51.48 MB / 409.5 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08449/0.2611, allocations: 81.84 MB / 491.3 MB, free: 8.781 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002137/0.2614, allocations: 73.69 kB / 491.4 MB, free: 8.711 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01983/0.2812, allocations: 7.367 MB / 498.8 MB, free: 1.34 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2813, allocations: 0 / 498.8 MB, free: 1.34 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.076e-05/0.2813, allocations: 15.94 kB / 498.8 MB, free: 1.324 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001047/0.2824, allocations: 0.6468 MB / 499.4 MB, free: 0.625 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.2824, allocations: 8.031 kB / 499.4 MB, free: 0.6172 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.77e-05/0.2825, allocations: 74.52 kB / 499.5 MB, free: 0.5352 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.728e-05/0.2826, allocations: 39.62 kB / 499.6 MB, free: 0.4961 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003522/0.2829, allocations: 297.9 kB / 499.8 MB, free: 168 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001753/0.2831, allocations: 145.7 kB / 500 MB, free: 4 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.803e-05/0.2832, allocations: 32.05 kB / 0.4883 GB, free: 15.97 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001097/0.2843, allocations: 0.5738 MB / 0.4889 GB, free: 15.38 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.838e-05/0.2843, allocations: 3.906 kB / 0.4889 GB, free: 15.37 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.279e-05/0.2844, allocations: 16 kB / 0.4889 GB, free: 15.36 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.2844, allocations: 4 kB / 0.4889 GB, free: 15.35 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001306/0.2857, allocations: 0.5541 MB / 0.4894 GB, free: 14.8 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001437/0.2872, allocations: 1.018 MB / 0.4904 GB, free: 13.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001339/0.2885, allocations: 0.5073 MB / 0.4909 GB, free: 13.16 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.407e-05/0.2886, allocations: 15.89 kB / 0.4909 GB, free: 13.14 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.235e-05/0.2886, allocations: 38.56 kB / 0.491 GB, free: 13.09 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 1.603e-06/0.2886, allocations: 0 / 0.491 GB, free: 13.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=73): time 0.04035/0.329, allocations: 6.808 MB / 0.4976 GB, free: 6.277 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.967e-05/0.3291, allocations: 156.9 kB / 0.4978 GB, free: 6.094 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002401/0.3293, allocations: 241.6 kB / 0.498 GB, free: 5.855 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.897e-05/0.3294, allocations: 33.7 kB / 0.498 GB, free: 5.816 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.088e-05/0.3295, allocations: 145.6 kB / 0.4982 GB, free: 5.668 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001652/0.3297, allocations: 193.3 kB / 0.4983 GB, free: 5.477 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.579e-05/0.3297, allocations: 16 kB / 0.4984 GB, free: 5.461 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.3299, allocations: 343.2 kB / 0.4987 GB, free: 5.117 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001483/0.3313, allocations: 0.6617 MB / 0.4993 GB, free: 4.453 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001574/0.3329, allocations: 0.8355 MB / 0.5002 GB, free: 3.539 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001378/0.3343, allocations: 0.6112 MB / 0.5008 GB, free: 2.926 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.3343, allocations: 3.938 kB / 0.5008 GB, free: 2.922 MB / 378.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003125/0.3375, allocations: 1.487 MB / 0.5022 GB, free: 1.43 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.3375, allocations: 8 kB / 0.5022 GB, free: 1.422 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.879e-06/0.3375, allocations: 8 kB / 0.5022 GB, free: 1.414 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.323e-05/0.3375, allocations: 12.11 kB / 0.5022 GB, free: 1.402 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001298/0.3388, allocations: 231.7 kB / 0.5025 GB, free: 1.176 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.728e-05/0.3389, allocations: 15.94 kB / 0.5025 GB, free: 1.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009523/0.3398, allocations: 131.7 kB / 0.5026 GB, free: 1.031 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.121e-05/0.3399, allocations: 24 kB / 0.5026 GB, free: 1.008 MB / 378.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 () * Number of clocked states: 1 (PI.x) * 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.000288/0.3402, allocations: 193.6 kB / 0.5028 GB, free: 0.8086 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002806/0.3405, allocations: 157.1 kB / 0.503 GB, free: 0.6484 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001667/0.3407, allocations: 71.55 kB / 0.503 GB, free: 0.5781 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.227e-06/0.3407, allocations: 8 kB / 0.503 GB, free: 0.5703 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.652e-06/0.3407, allocations: 0 / 0.503 GB, free: 0.5703 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.727e-06/0.3407, allocations: 7.984 kB / 0.503 GB, free: 0.5625 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1725/0.5132, allocations: 2.313 MB / 0.5053 GB, free: 97.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.722e-05/0.5133, allocations: 10.88 kB / 0.5053 GB, free: 97.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008292/0.5141, allocations: 202.2 kB / 0.5055 GB, free: 97.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.299e-05/0.5142, allocations: 14.81 kB / 0.5055 GB, free: 97.07 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.365e-05/0.5143, allocations: 28.75 kB / 0.5055 GB, free: 97.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-05/0.5143, allocations: 19.56 kB / 0.5056 GB, free: 97.07 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-05/0.5143, allocations: 19.84 kB / 0.5056 GB, free: 97.07 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003311/0.5176, allocations: 2.196 MB / 0.5077 GB, free: 95.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002766/0.5179, allocations: 182.3 kB / 0.5079 GB, free: 95.63 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.102e-05/0.518, allocations: 29.61 kB / 0.5079 GB, free: 95.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005998/0.5186, allocations: 96.27 kB / 0.508 GB, free: 95.63 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002066/0.5188, allocations: 104.6 kB / 0.5081 GB, free: 95.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.969e-05/0.5189, allocations: 32.69 kB / 0.5081 GB, free: 95.61 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002008/0.5191, allocations: 191.4 kB / 0.5083 GB, free: 95.53 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5191, allocations: 0 / 0.5083 GB, free: 95.53 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007098/0.5198, allocations: 134.7 kB / 0.5085 GB, free: 95.52 MB / 378.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 () * Number of clocked states: 1 (PI.x) * 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.003951/0.5238, allocations: 5.802 MB / 0.5141 GB, free: 90.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002373/0.5261, allocations: 1.202 MB / 0.5153 GB, free: 90.07 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.201e-06/0.5262, allocations: 2.719 kB / 0.5153 GB, free: 90.07 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008774/0.527, allocations: 382.1 kB / 0.5157 GB, free: 89.98 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006349/0.5277, allocations: 142.2 kB / 0.5158 GB, free: 89.94 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007388/0.5351, allocations: 7.988 MB / 0.5236 GB, free: 83.78 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002558/0.5354, allocations: 0.8409 MB / 0.5244 GB, free: 83.07 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005691/0.5359, allocations: 94 kB / 0.5245 GB, free: 83.03 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003358/0.5363, allocations: 122.3 kB / 0.5246 GB, free: 82.95 MB / 378.7 MB Notification: Performance of SimCode: time 7.01e-07/0.5363, allocations: 3.938 kB / 0.5246 GB, free: 82.95 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02017/0.5565, allocations: 10.66 MB / 0.535 GB, free: 73.68 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001405/0.5567, allocations: 199.9 kB / 0.5352 GB, free: 73.43 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.142/2.699, allocations: 0 / 0.5352 GB, free: 73.43 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat does not exist to compare? outputFormat=mat