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.001059/0.001059, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 225.4 MB / 240.1 MB, free: 15.03 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009022/0.0009024, allocations: 93.61 kB / 292.1 MB, free: 6.051 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.941e-05/2.943e-05, allocations: 4 kB / 350.6 MB, free: 2.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1269, allocations: 51.48 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3682/0.4951, allocations: 81.77 MB / 483.9 MB, free: 7.688 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001786/0.4953, allocations: 70.59 kB / 484 MB, free: 7.652 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01839/0.5137, allocations: 7.355 MB / 491.3 MB, free: 1.484 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.5138, allocations: 0 / 491.3 MB, free: 1.484 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.804e-05/0.5138, allocations: 12 kB / 491.3 MB, free: 1.473 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0009656/0.5148, allocations: 0.6115 MB / 491.9 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.715e-05/0.5148, allocations: 8.031 kB / 491.9 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.064e-05/0.5149, allocations: 72.72 kB / 492 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.724e-05/0.515, allocations: 43.53 kB / 492.1 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003458/0.5153, allocations: 294.9 kB / 492.3 MB, free: 444 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001801/0.5155, allocations: 145.4 kB / 492.5 MB, free: 296 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.094e-05/0.5156, allocations: 36.81 kB / 492.5 MB, free: 272 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008344/0.5164, allocations: 0.5024 MB / 493 MB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.901e-05/0.5165, allocations: 0 / 493 MB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.123e-05/0.5165, allocations: 11.38 kB / 493 MB, free: 15.87 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.5165, allocations: 11.94 kB / 493 MB, free: 15.86 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006535/0.5172, allocations: 413.7 kB / 493.5 MB, free: 15.58 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001551/0.5188, allocations: 1.028 MB / 494.5 MB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000897/0.5197, allocations: 419 kB / 494.9 MB, free: 14.15 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002943/0.52, allocations: 208.5 kB / 495.1 MB, free: 13.93 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.954e-05/0.52, allocations: 12 kB / 495.1 MB, free: 13.92 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.751e-05/0.5201, allocations: 45.91 kB / 495.2 MB, free: 13.87 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 1.563e-06/0.5201, allocations: 0 / 495.2 MB, free: 13.87 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.007714/0.5278, allocations: 2.117 MB / 497.3 MB, free: 11.76 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.425e-05/0.5279, allocations: 148.9 kB / 497.4 MB, free: 11.58 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002602/0.5282, allocations: 237.1 kB / 497.6 MB, free: 11.35 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.588e-05/0.5283, allocations: 41.69 kB / 497.7 MB, free: 11.3 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.868e-05/0.5284, allocations: 149.4 kB / 497.8 MB, free: 11.15 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001837/0.5286, allocations: 197.3 kB / 498 MB, free: 10.96 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.091e-05/0.5286, allocations: 12 kB / 498 MB, free: 10.95 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.5288, allocations: 347.7 kB / 498.4 MB, free: 10.6 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000705/0.5295, allocations: 477.5 kB / 498.8 MB, free: 10.13 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000807/0.5303, allocations: 0.6424 MB / 499.5 MB, free: 9.414 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006556/0.5309, allocations: 439 kB / 499.9 MB, free: 8.984 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.531, allocations: 4 kB / 499.9 MB, free: 8.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001763/0.5327, allocations: 1.1 MB / 0.4893 GB, free: 7.875 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.5328, allocations: 8 kB / 0.4893 GB, free: 7.867 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.5328, allocations: 12.06 kB / 0.4893 GB, free: 7.855 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.024e-05/0.5328, allocations: 8 kB / 0.4893 GB, free: 7.848 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001403/0.5342, allocations: 231.6 kB / 0.4895 GB, free: 7.621 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.753e-05/0.5342, allocations: 15.94 kB / 0.4895 GB, free: 7.605 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000969/0.5352, allocations: 126.7 kB / 0.4897 GB, free: 7.484 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.209e-05/0.5353, allocations: 29.47 kB / 0.4897 GB, free: 7.457 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.000221/0.5355, allocations: 144.7 kB / 0.4898 GB, free: 7.309 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002982/0.5358, allocations: 158.8 kB / 0.49 GB, free: 7.148 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001925/0.536, allocations: 71.39 kB / 0.49 GB, free: 7.078 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.5361, allocations: 8 kB / 0.4901 GB, free: 7.07 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.335e-06/0.5361, allocations: 0 / 0.4901 GB, free: 7.07 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.909e-06/0.5361, allocations: 11.94 kB / 0.4901 GB, free: 7.059 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003624/0.5397, allocations: 2.031 MB / 0.492 GB, free: 4.844 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.381e-05/0.5397, allocations: 13 kB / 0.4921 GB, free: 4.832 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007779/0.5405, allocations: 209.5 kB / 0.4923 GB, free: 4.629 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.565e-05/0.5406, allocations: 12 kB / 0.4923 GB, free: 4.617 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.118e-05/0.5406, allocations: 24 kB / 0.4923 GB, free: 4.594 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.304e-05/0.5406, allocations: 23.94 kB / 0.4923 GB, free: 4.57 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.298e-06/0.5407, allocations: 15.94 kB / 0.4923 GB, free: 4.555 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001727/0.5424, allocations: 1.769 MB / 0.4941 GB, free: 2.363 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002266/0.5426, allocations: 184.5 kB / 0.4942 GB, free: 2.164 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.401e-05/0.5427, allocations: 24 kB / 0.4943 GB, free: 2.141 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006195/0.5433, allocations: 95.97 kB / 0.4943 GB, free: 2.047 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001962/0.5435, allocations: 107.7 kB / 0.4945 GB, free: 1.941 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.644e-05/0.5436, allocations: 31.94 kB / 0.4945 GB, free: 1.91 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001863/0.5438, allocations: 191.1 kB / 0.4947 GB, free: 1.723 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5438, allocations: 8 kB / 0.4947 GB, free: 1.715 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006357/0.5444, allocations: 128 kB / 0.4948 GB, free: 1.59 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.002895/0.5473, allocations: 5.363 MB / 0.5 GB, free: 11.91 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00137/0.5487, allocations: 0.8636 MB / 0.5009 GB, free: 11.04 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.5487, allocations: 0 / 0.5009 GB, free: 11.04 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004429/0.5492, allocations: 240.8 kB / 0.5011 GB, free: 10.81 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006382/0.5498, allocations: 133.7 kB / 0.5012 GB, free: 10.69 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002511/0.5524, allocations: 1.128 MB / 0.5023 GB, free: 9.387 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004388/0.5528, allocations: 0.8366 MB / 0.5032 GB, free: 8.523 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006587/0.5535, allocations: 96.08 kB / 0.5032 GB, free: 8.43 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003721/0.5539, allocations: 123.4 kB / 0.5034 GB, free: 8.309 MB / 378.7 MB Notification: Performance of SimCode: time 1.092e-06/0.5539, allocations: 0 / 0.5034 GB, free: 8.309 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02512/0.579, allocations: 10.72 MB / 0.5138 GB, free: 13.8 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001684/0.5792, allocations: 182.5 kB / 0.514 GB, free: 13.57 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.182/2.761, allocations: 0 / 0.514 GB, free: 13.57 MB / 394.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