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.001599/0.001599, allocations: 197.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.64/1.64, allocations: 225.6 MB / 234.8 MB, free: 3.211 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008865/0.0008866, allocations: 88.39 kB / 286.7 MB, free: 5.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.628e-05/1.622e-05, allocations: 4 kB / 343.8 MB, free: 8.148 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.115, allocations: 51.48 MB / 395.3 MB, free: 4.633 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.376/0.4911, allocations: 81.11 MB / 476.4 MB, free: 11.03 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002369/0.4914, allocations: 68.42 kB / 476.4 MB, free: 11.01 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02002/0.5114, allocations: 7.317 MB / 483.7 MB, free: 5.66 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.5115, allocations: 0 / 483.7 MB, free: 5.66 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.255e-05/0.5115, allocations: 4 kB / 483.7 MB, free: 5.656 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.001144/0.5127, allocations: 0.6097 MB / 484.4 MB, free: 5.027 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.5127, allocations: 12.03 kB / 484.4 MB, free: 5.016 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001558/0.5129, allocations: 50.81 kB / 484.4 MB, free: 4.969 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004635/0.5134, allocations: 290.1 kB / 484.7 MB, free: 4.668 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002282/0.5136, allocations: 132.3 kB / 484.8 MB, free: 4.523 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.901e-05/0.5137, allocations: 22.73 kB / 484.9 MB, free: 4.508 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008125/0.5145, allocations: 411.2 kB / 485.3 MB, free: 4.23 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008106/0.5153, allocations: 464 kB / 485.7 MB, free: 3.867 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.421e-05/0.5154, allocations: 7.938 kB / 485.7 MB, free: 3.859 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.527e-05/0.5154, allocations: 7.938 kB / 485.7 MB, free: 3.852 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.5154, allocations: 4 kB / 485.7 MB, free: 3.848 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001487/0.5169, allocations: 0.9759 MB / 486.7 MB, free: 2.977 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007761/0.5177, allocations: 390.4 kB / 487.1 MB, free: 2.664 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002326/0.518, allocations: 198.1 kB / 487.3 MB, free: 2.527 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.888e-05/0.518, allocations: 8.141 kB / 487.3 MB, free: 2.52 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.719e-05/0.5181, allocations: 45.5 kB / 487.3 MB, free: 2.473 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 1.663e-06/0.5181, allocations: 0 / 487.3 MB, free: 2.473 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.006724/0.5248, allocations: 2.027 MB / 489.4 MB, free: 1.012 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.507e-05/0.5249, allocations: 151.3 kB / 489.5 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002219/0.5251, allocations: 222.1 kB / 489.7 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.342e-05/0.5252, allocations: 29.64 kB / 489.7 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.568e-05/0.5253, allocations: 149 kB / 489.9 MB, free: 496 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001444/0.5254, allocations: 192.2 kB / 490.1 MB, free: 328 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.881e-05/0.5255, allocations: 0 / 490.1 MB, free: 328 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.694e-05/0.5256, allocations: 345.4 kB / 490.4 MB, free: 15.99 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006368/0.5262, allocations: 467.7 kB / 490.9 MB, free: 15.77 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007265/0.527, allocations: 0.6294 MB / 491.5 MB, free: 15.32 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005741/0.5276, allocations: 418.3 kB / 491.9 MB, free: 15.1 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/0.5276, allocations: 6.719 kB / 491.9 MB, free: 15.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001538/0.5291, allocations: 1.037 MB / 493 MB, free: 14.46 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.5292, allocations: 11.98 kB / 493 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/0.5292, allocations: 8 kB / 493 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.28e-05/0.5292, allocations: 8.719 kB / 493 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001343/0.5306, allocations: 226.6 kB / 493.2 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.854e-05/0.5306, allocations: 11.94 kB / 493.2 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009633/0.5316, allocations: 115.6 kB / 493.3 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.275e-05/0.5317, allocations: 31.69 kB / 493.4 MB, free: 14.07 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.0002258/0.5319, allocations: 120.7 kB / 493.5 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001429/0.5333, allocations: 0.9141 MB / 494.4 MB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001276/0.5335, allocations: 39.53 kB / 494.4 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001877/0.5337, allocations: 60.89 kB / 494.5 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.026e-05/0.5337, allocations: 8 kB / 494.5 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/0.5337, allocations: 0 / 494.5 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.001e-05/0.5337, allocations: 7.984 kB / 494.5 MB, free: 13.33 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003554/0.5373, allocations: 1.913 MB / 496.4 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.848e-05/0.5373, allocations: 13 kB / 496.4 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008065/0.5381, allocations: 200.3 kB / 496.6 MB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.604e-05/0.5382, allocations: 19.98 kB / 496.6 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.061e-05/0.5382, allocations: 15.38 kB / 496.7 MB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.549e-05/0.5382, allocations: 23.92 kB / 496.7 MB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.776e-05/0.5383, allocations: 15.94 kB / 496.7 MB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002068/0.5403, allocations: 1.705 MB / 498.4 MB, free: 9.535 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002555/0.5406, allocations: 187.4 kB / 498.6 MB, free: 9.359 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.8e-05/0.5407, allocations: 15.98 kB / 498.6 MB, free: 9.344 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006527/0.5413, allocations: 87.94 kB / 498.7 MB, free: 9.258 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002204/0.5416, allocations: 104.1 kB / 498.8 MB, free: 9.172 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.527e-05/0.5417, allocations: 39.45 kB / 498.8 MB, free: 9.137 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002161/0.5419, allocations: 174.9 kB / 499 MB, free: 8.996 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5419, allocations: 0 / 499 MB, free: 8.996 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007938/0.5427, allocations: 107.2 kB / 499.1 MB, free: 8.895 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.004013/0.5467, allocations: 5.308 MB / 0.4926 GB, free: 3.59 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001382/0.5481, allocations: 0.8176 MB / 0.4934 GB, free: 3.012 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.542e-06/0.5481, allocations: 4 kB / 0.4934 GB, free: 3.008 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004459/0.5486, allocations: 212.5 kB / 0.4936 GB, free: 2.801 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007098/0.5493, allocations: 119.6 kB / 0.4937 GB, free: 2.688 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002515/0.5518, allocations: 1.048 MB / 0.4947 GB, free: 1.473 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005088/0.5524, allocations: 0.8431 MB / 0.4956 GB, free: 0.6094 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006094/0.553, allocations: 96.16 kB / 0.4957 GB, free: 0.5156 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003832/0.5534, allocations: 119.4 kB / 0.4958 GB, free: 408 kB / 362.7 MB Notification: Performance of SimCode: time 5.01e-07/0.5534, allocations: 4 kB / 0.4958 GB, free: 404 kB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03251/0.5859, allocations: 10.28 MB / 0.5058 GB, free: 6.172 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002027/0.5862, allocations: 160.3 kB / 0.506 GB, free: 5.977 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.096/2.682, allocations: 0 / 0.506 GB, free: 5.977 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