Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001193/0.001193, allocations: 100.1 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001608/0.001609, allocations: 202.3 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003283/0.0003284, allocations: 8 kB / 306.7 MB, free: 1.293 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.1238, allocations: 51.49 MB / 358.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003391/0.1272, allocations: 1.923 MB / 360.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001875/0.1292, allocations: 0.7722 MB / 360.9 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002518/0.1294, allocations: 4 kB / 360.9 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003044/0.1298, allocations: 35.75 kB / 360.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002864/0.1301, allocations: 51.84 kB / 361 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000586/0.1307, allocations: 139.6 kB / 361.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004309/0.1311, allocations: 219.8 kB / 361.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002091/0.1313, allocations: 80.98 kB / 361.4 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004178/0.1317, allocations: 139.5 kB / 361.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003018/0.132, allocations: 147.4 kB / 361.7 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.598e-05/0.1321, allocations: 16 kB / 361.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.424e-05/0.1322, allocations: 16 kB / 361.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001044/0.1323, allocations: 67.78 kB / 361.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.741e-05/0.1324, allocations: 65.58 kB / 361.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002786/0.1327, allocations: 227.7 kB / 362.1 MB, free: 9.891 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.1327, allocations: 0 / 362.1 MB, free: 9.891 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1327, allocations: 4 kB / 362.1 MB, free: 9.887 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.017e-05/0.1327, allocations: 0 / 362.1 MB, free: 9.887 MB / 302.1 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.001217/0.1339, allocations: 0.5847 MB / 362.7 MB, free: 9.254 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.134, allocations: 8.031 kB / 362.7 MB, free: 9.246 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001145/0.1341, allocations: 82.53 kB / 362.7 MB, free: 9.156 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.818e-05/0.1342, allocations: 35.62 kB / 362.8 MB, free: 9.121 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003765/0.1346, allocations: 266.6 kB / 363 MB, free: 8.824 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002172/0.1348, allocations: 137.6 kB / 363.2 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.715e-05/0.1349, allocations: 27.95 kB / 363.2 MB, free: 8.641 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00123/0.1361, allocations: 0.5572 MB / 363.8 MB, free: 8.055 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.241e-05/0.1362, allocations: 0 / 363.8 MB, free: 8.055 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.637e-05/0.1362, allocations: 12 kB / 363.8 MB, free: 8.043 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.1362, allocations: 8 kB / 363.8 MB, free: 8.035 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001455/0.1377, allocations: 0.5315 MB / 364.3 MB, free: 7.504 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001674/0.1394, allocations: 1.018 MB / 365.3 MB, free: 6.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001642/0.141, allocations: 0.5108 MB / 365.8 MB, free: 5.863 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.21e-05/0.1411, allocations: 12.27 kB / 365.9 MB, free: 5.852 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.674e-05/0.1411, allocations: 38.7 kB / 365.9 MB, free: 5.805 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.633e-06/0.1411, allocations: 8 kB / 365.9 MB, free: 5.797 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.2694/0.4105, allocations: 6.74 MB / 372.6 MB, free: 19.72 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.911e-05/0.4106, allocations: 147.2 kB / 372.8 MB, free: 19.56 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002214/0.4108, allocations: 195.7 kB / 373 MB, free: 19.46 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.918e-05/0.4109, allocations: 39.02 kB / 373 MB, free: 19.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.462e-05/0.411, allocations: 148.5 kB / 373.2 MB, free: 19.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001864/0.4112, allocations: 191.2 kB / 373.3 MB, free: 19.21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.56e-05/0.4113, allocations: 15.97 kB / 373.4 MB, free: 19.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.117e-05/0.4114, allocations: 342.4 kB / 373.7 MB, free: 18.89 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001695/0.4131, allocations: 0.6539 MB / 374.3 MB, free: 18.89 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001968/0.415, allocations: 0.8285 MB / 375.2 MB, free: 18.69 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001694/0.4167, allocations: 0.6079 MB / 375.8 MB, free: 18.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.72e-06/0.4168, allocations: 1.031 kB / 375.8 MB, free: 18.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003629/0.4204, allocations: 1.462 MB / 377.2 MB, free: 18.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.53e-05/0.4204, allocations: 6.906 kB / 377.3 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.608e-05/0.4205, allocations: 7.516 kB / 377.3 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.669e-05/0.4205, allocations: 8.781 kB / 377.3 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001396/0.4219, allocations: 235.1 kB / 377.5 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.292e-05/0.4219, allocations: 14.2 kB / 377.5 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001002/0.4229, allocations: 124.6 kB / 377.6 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.94e-05/0.423, allocations: 37.17 kB / 377.7 MB, free: 18.04 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * 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.0002941/0.4233, allocations: 176 kB / 377.8 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002938/0.4236, allocations: 150 kB / 378 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000142/0.4238, allocations: 64.81 kB / 378.1 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.788e-06/0.4238, allocations: 7.219 kB / 378.1 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.432e-05/0.4238, allocations: 4.031 kB / 378.1 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/0.4238, allocations: 4.844 kB / 378.1 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005028/0.4289, allocations: 2.285 MB / 380.4 MB, free: 16.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.506e-05/0.4289, allocations: 10.75 kB / 380.4 MB, free: 16.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008272/0.4297, allocations: 206.9 kB / 380.6 MB, free: 16.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.377e-05/0.4298, allocations: 15.77 kB / 380.6 MB, free: 16.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.644e-05/0.4298, allocations: 32.02 kB / 380.6 MB, free: 16.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-05/0.4299, allocations: 19.94 kB / 380.6 MB, free: 16.55 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.708e-05/0.4299, allocations: 17 kB / 380.6 MB, free: 16.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003663/0.4336, allocations: 2.171 MB / 382.8 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002294/0.4338, allocations: 165.5 kB / 383 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.859e-05/0.4339, allocations: 30.91 kB / 383 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006112/0.4345, allocations: 95.28 kB / 383.1 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000224/0.4347, allocations: 104.3 kB / 383.2 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.379e-05/0.4348, allocations: 30.59 kB / 383.2 MB, free: 14.61 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001436/0.435, allocations: 141.3 kB / 383.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.435, allocations: 3.938 kB / 383.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007473/0.4357, allocations: 122.1 kB / 383.5 MB, free: 14.5 MB / 302.1 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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.00419/0.4399, allocations: 5.773 MB / 389.3 MB, free: 9.277 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003478/0.4434, allocations: 1.187 MB / 390.5 MB, free: 8.852 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.341e-05/0.4434, allocations: 1.094 kB / 390.5 MB, free: 8.852 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001209/0.4447, allocations: 375.6 kB / 390.8 MB, free: 8.758 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007624/0.4454, allocations: 121.1 kB / 390.9 MB, free: 8.723 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00964/0.4551, allocations: 7.818 MB / 398.8 MB, free: 2.645 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000315/0.4554, allocations: 0.8214 MB / 399.6 MB, free: 1.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005891/0.456, allocations: 97.86 kB / 399.7 MB, free: 1.883 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003308/0.4564, allocations: 115.7 kB / 399.8 MB, free: 1.809 MB / 302.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4564, allocations: 0 / 399.8 MB, free: 1.809 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02173/0.4781, allocations: 10.21 MB / 410 MB, free: 9.844 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001717/0.4783, allocations: 188.3 kB / 410.2 MB, free: 9.609 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.98/2.459, allocations: 0 / 410.2 MB, free: 9.609 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat does not exist to compare? outputFormat=mat