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.0007942/0.0007943, allocations: 96.58 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009447/0.0009448, allocations: 193 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002461/0.0002461, allocations: 4 kB / 306.8 MB, free: 1.254 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1105, allocations: 51.49 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.002715/0.1133, allocations: 1.962 MB / 360.3 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001408/0.1147, allocations: 0.7721 MB / 361 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001383/0.1149, allocations: 4 kB / 361 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002565/0.1152, allocations: 39.7 kB / 361.1 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001571/0.1153, allocations: 35.75 kB / 361.1 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004269/0.1158, allocations: 143.7 kB / 361.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003627/0.1161, allocations: 331.3 kB / 361.6 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001849/0.1163, allocations: 81.97 kB / 361.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002784/0.1166, allocations: 139.5 kB / 361.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000214/0.1168, allocations: 139.5 kB / 361.9 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.147e-05/0.1169, allocations: 16 kB / 361.9 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.348e-05/0.117, allocations: 16 kB / 362 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.787e-05/0.1171, allocations: 75.72 kB / 362 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.263e-05/0.1171, allocations: 65.58 kB / 362.1 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002501/0.1174, allocations: 223.7 kB / 362.3 MB, free: 9.723 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.1174, allocations: 0 / 362.3 MB, free: 9.723 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1174, allocations: 4 kB / 362.3 MB, free: 9.719 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.1174, allocations: 0 / 362.3 MB, free: 9.719 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.001206/0.1186, allocations: 0.5848 MB / 362.9 MB, free: 9.086 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.948e-05/0.1187, allocations: 8.031 kB / 362.9 MB, free: 9.078 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.318e-05/0.1188, allocations: 78.53 kB / 363 MB, free: 8.992 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.34e-05/0.1189, allocations: 35.62 kB / 363 MB, free: 8.957 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003678/0.1193, allocations: 262.6 kB / 363.3 MB, free: 8.664 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001995/0.1195, allocations: 137.6 kB / 363.4 MB, free: 8.508 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.358e-05/0.1195, allocations: 31.95 kB / 363.4 MB, free: 8.477 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001121/0.1207, allocations: 0.5611 MB / 364 MB, free: 7.887 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/0.1207, allocations: 0 / 364 MB, free: 7.887 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.409e-05/0.1207, allocations: 12 kB / 364 MB, free: 7.875 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.1207, allocations: 4 kB / 364 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001351/0.1221, allocations: 0.5424 MB / 364.6 MB, free: 7.328 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001562/0.1237, allocations: 1.01 MB / 365.6 MB, free: 6.242 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001499/0.1252, allocations: 0.5215 MB / 366.1 MB, free: 5.688 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005921/0.1258, allocations: 275.7 kB / 366.4 MB, free: 5.406 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.599e-05/0.1259, allocations: 8.188 kB / 366.4 MB, free: 5.398 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.752e-05/0.1259, allocations: 38.7 kB / 366.4 MB, free: 5.352 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.114e-06/0.1259, allocations: 0 / 366.4 MB, free: 5.352 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.2422/0.3681, allocations: 6.746 MB / 373.2 MB, free: 20.23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.346e-05/0.3682, allocations: 150.2 kB / 373.3 MB, free: 20.08 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002288/0.3684, allocations: 193 kB / 373.5 MB, free: 19.97 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.976e-05/0.3685, allocations: 37.45 kB / 373.5 MB, free: 19.94 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.223e-05/0.3686, allocations: 149.1 kB / 373.7 MB, free: 19.83 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001978/0.3688, allocations: 191.5 kB / 373.9 MB, free: 19.71 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.371e-05/0.3689, allocations: 13.81 kB / 373.9 MB, free: 19.71 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.782e-05/0.369, allocations: 343.1 kB / 374.2 MB, free: 19.4 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001723/0.3707, allocations: 0.653 MB / 374.9 MB, free: 19.4 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00175/0.3725, allocations: 0.8347 MB / 375.7 MB, free: 19 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001409/0.3739, allocations: 0.6018 MB / 376.3 MB, free: 18.76 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.3739, allocations: 5.438 kB / 376.3 MB, free: 18.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003315/0.3772, allocations: 1.464 MB / 377.8 MB, free: 18.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.58e-05/0.3773, allocations: 7 kB / 377.8 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.826e-05/0.3773, allocations: 10.34 kB / 377.8 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.817e-05/0.3773, allocations: 9.344 kB / 377.8 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001312/0.3786, allocations: 231.5 kB / 378 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.253e-05/0.3787, allocations: 14.14 kB / 378 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009207/0.3796, allocations: 122.8 kB / 378.1 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.054e-05/0.3797, allocations: 32.64 kB / 378.2 MB, free: 18.13 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.0002967/0.38, allocations: 185.6 kB / 378.4 MB, free: 17.97 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002815/0.3803, allocations: 150.4 kB / 378.5 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001779/0.3805, allocations: 65.59 kB / 378.6 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/0.3805, allocations: 8.281 kB / 378.6 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.293e-05/0.3805, allocations: 1.375 kB / 378.6 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.799e-06/0.3805, allocations: 8.078 kB / 378.6 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004767/0.3853, allocations: 2.292 MB / 380.9 MB, free: 16.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.579e-05/0.3853, allocations: 9.219 kB / 380.9 MB, free: 16.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007749/0.3861, allocations: 205.3 kB / 381.1 MB, free: 16.65 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-05/0.3861, allocations: 15.47 kB / 381.1 MB, free: 16.65 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.652e-05/0.3862, allocations: 24.39 kB / 381.1 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.792e-05/0.3862, allocations: 20.02 kB / 381.1 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.185e-05/0.3862, allocations: 19.47 kB / 381.2 MB, free: 16.63 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002926/0.3892, allocations: 1.655 MB / 382.8 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002033/0.3894, allocations: 161.5 kB / 383 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.83e-05/0.3895, allocations: 31.38 kB / 383 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000625/0.3901, allocations: 95.61 kB / 383.1 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002459/0.3904, allocations: 108.1 kB / 383.2 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.624e-05/0.3904, allocations: 30.11 kB / 383.2 MB, free: 15.47 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001416/0.3906, allocations: 138.3 kB / 383.4 MB, free: 15.38 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3906, allocations: 0 / 383.4 MB, free: 15.38 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007832/0.3914, allocations: 122.9 kB / 383.5 MB, free: 15.36 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.00329/0.3947, allocations: 2.224 MB / 385.7 MB, free: 13.85 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003005/0.3977, allocations: 1.189 MB / 386.9 MB, free: 13.42 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.1e-05/0.3977, allocations: 5.047 kB / 386.9 MB, free: 13.42 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001142/0.3989, allocations: 383.9 kB / 387.3 MB, free: 13.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009751/0.3998, allocations: 133.5 kB / 387.4 MB, free: 13.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007833/0.4077, allocations: 4.226 MB / 391.6 MB, free: 10.81 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002888/0.408, allocations: 0.8134 MB / 392.5 MB, free: 10.1 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006093/0.4086, allocations: 95.05 kB / 392.6 MB, free: 10.05 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003423/0.409, allocations: 113.9 kB / 392.7 MB, free: 9.984 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.409, allocations: 1.562 kB / 392.7 MB, free: 9.984 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02086/0.4298, allocations: 10.22 MB / 402.9 MB, free: 1.707 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001699/0.4301, allocations: 200.3 kB / 403.1 MB, free: 1.473 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.104/2.534, allocations: 64 / 403.1 MB, free: 1.473 MB / 302.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