Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009305/0.0009306, allocations: 96.73 kB / 16.3 MB, free: 5.988 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009607/0.0009608, allocations: 179.2 kB / 17.19 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.494/1.494, allocations: 223.2 MB / 241.1 MB, free: 5.445 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002506/0.0002507, allocations: 5.344 kB / 300.8 MB, free: 5.984 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09961/0.09987, allocations: 50.41 MB / 351.2 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.002406/0.1023, allocations: 1.76 MB / 353 MB, free: 9.863 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001128/0.1035, allocations: 0.6164 MB / 353.6 MB, free: 9.242 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001093/0.1036, allocations: 7.938 kB / 353.6 MB, free: 9.234 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002126/0.1038, allocations: 23.84 kB / 353.6 MB, free: 9.211 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001282/0.104, allocations: 51.77 kB / 353.7 MB, free: 9.16 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002854/0.1043, allocations: 103 kB / 353.8 MB, free: 9.062 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002508/0.1045, allocations: 203.6 kB / 354 MB, free: 8.863 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001397/0.1047, allocations: 56.22 kB / 354 MB, free: 8.805 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002299/0.1049, allocations: 119.6 kB / 354.1 MB, free: 8.688 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002363/0.1052, allocations: 135.5 kB / 354.3 MB, free: 8.555 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.707e-05/0.1052, allocations: 16 kB / 354.3 MB, free: 8.539 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.852e-05/0.1053, allocations: 16 kB / 354.3 MB, free: 8.523 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001031/0.1054, allocations: 67.78 kB / 354.4 MB, free: 8.457 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.725e-05/0.1055, allocations: 57.64 kB / 354.4 MB, free: 8.395 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002391/0.1057, allocations: 199.4 kB / 354.6 MB, free: 8.199 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.1057, allocations: 0 / 354.6 MB, free: 8.199 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1057, allocations: 0 / 354.6 MB, free: 8.199 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.1057, allocations: 0 / 354.6 MB, free: 8.199 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001039/0.1068, allocations: 0.5533 MB / 355.2 MB, free: 7.598 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.1068, allocations: 8.031 kB / 355.2 MB, free: 7.59 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.966e-05/0.1069, allocations: 70.48 kB / 355.3 MB, free: 7.512 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.345e-05/0.107, allocations: 31.72 kB / 355.3 MB, free: 7.48 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003087/0.1073, allocations: 243.2 kB / 355.5 MB, free: 7.203 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002033/0.1075, allocations: 141.6 kB / 355.7 MB, free: 7.047 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.065e-05/0.1076, allocations: 27.94 kB / 355.7 MB, free: 7.02 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000816/0.1084, allocations: 375.6 kB / 356.1 MB, free: 6.645 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/0.1084, allocations: 3.938 kB / 356.1 MB, free: 6.641 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.354e-05/0.1085, allocations: 15.95 kB / 356.1 MB, free: 6.625 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.265e-06/0.1085, allocations: 4 kB / 356.1 MB, free: 6.621 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00133/0.1098, allocations: 0.5057 MB / 356.6 MB, free: 6.113 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001651/0.1115, allocations: 1.039 MB / 357.6 MB, free: 5.004 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001162/0.1127, allocations: 355.1 kB / 358 MB, free: 4.648 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.18e-05/0.1127, allocations: 4.234 kB / 358 MB, free: 4.645 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.646e-05/0.1127, allocations: 38.78 kB / 358 MB, free: 4.598 MB / 286.1 MB Notification: Performance of pre-optimization done (n=28): time 3.617e-06/0.1127, allocations: 3.984 kB / 358 MB, free: 4.594 MB / 286.1 MB Notification: Performance of matching and sorting (n=52): time 0.02754/0.1403, allocations: 6.666 MB / 364.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.257e-05/0.1404, allocations: 55.84 kB / 364.7 MB, free: 13.77 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002547/0.1406, allocations: 202.8 kB / 364.9 MB, free: 13.56 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.352e-05/0.1407, allocations: 37.7 kB / 365 MB, free: 13.52 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.1408, allocations: 148.6 kB / 365.1 MB, free: 13.37 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001757/0.141, allocations: 177.5 kB / 365.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.42e-05/0.1411, allocations: 8 kB / 365.3 MB, free: 13.19 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.1412, allocations: 338.8 kB / 365.6 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001334/0.1426, allocations: 0.4891 MB / 366.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001319/0.1439, allocations: 0.5529 MB / 366.7 MB, free: 11.79 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001205/0.1451, allocations: 445.9 kB / 367.1 MB, free: 11.36 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.1451, allocations: 0 / 367.1 MB, free: 11.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002702/0.1478, allocations: 1.049 MB / 368.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.189e-05/0.1479, allocations: 8 kB / 368.2 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.1479, allocations: 0 / 368.2 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.167e-05/0.1479, allocations: 7.953 kB / 368.2 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009799/0.1489, allocations: 187.8 kB / 368.4 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.282e-05/0.1489, allocations: 4 kB / 368.4 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006929/0.1496, allocations: 107.9 kB / 368.5 MB, free: 9.992 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.137e-05/0.1497, allocations: 19.94 kB / 368.5 MB, free: 9.973 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0002372/0.1499, allocations: 169.6 kB / 368.7 MB, free: 9.797 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.904e-05/0.15, allocations: 23.72 kB / 368.7 MB, free: 9.773 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001041/0.1501, allocations: 51.3 kB / 368.7 MB, free: 9.719 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.1501, allocations: 11.95 kB / 368.7 MB, free: 9.707 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.1502, allocations: 0 / 368.7 MB, free: 9.707 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.054e-06/0.1502, allocations: 3.984 kB / 368.7 MB, free: 9.703 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004158/0.1543, allocations: 1.993 MB / 370.7 MB, free: 7.547 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.211e-05/0.1544, allocations: 8 kB / 370.7 MB, free: 7.539 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006642/0.155, allocations: 168.3 kB / 370.9 MB, free: 7.375 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.409e-05/0.1551, allocations: 12 kB / 370.9 MB, free: 7.363 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.01e-05/0.1551, allocations: 16 kB / 370.9 MB, free: 7.348 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.386e-05/0.1551, allocations: 15.98 kB / 370.9 MB, free: 7.332 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.778e-06/0.1551, allocations: 15.94 kB / 371 MB, free: 7.316 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00313/0.1583, allocations: 1.748 MB / 372.7 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002029/0.1585, allocations: 148.7 kB / 372.9 MB, free: 5.062 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.744e-05/0.1586, allocations: 16 kB / 372.9 MB, free: 5.047 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005754/0.1592, allocations: 99.84 kB / 373 MB, free: 4.949 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001858/0.1594, allocations: 87.73 kB / 373.1 MB, free: 4.863 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.98e-05/0.1594, allocations: 24 kB / 373.1 MB, free: 4.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001689/0.1596, allocations: 147.2 kB / 373.2 MB, free: 4.695 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1596, allocations: 0 / 373.2 MB, free: 4.695 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000491/0.1601, allocations: 96 kB / 373.3 MB, free: 4.602 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.004225/0.1643, allocations: 4.704 MB / 378 MB, free: 15.63 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00232/0.1667, allocations: 0.908 MB / 378.9 MB, free: 14.72 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/0.1667, allocations: 4 kB / 378.9 MB, free: 14.71 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009483/0.1676, allocations: 365.7 kB / 379.3 MB, free: 14.36 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004571/0.1681, allocations: 51.97 kB / 379.3 MB, free: 14.31 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007162/0.1753, allocations: 3.917 MB / 383.3 MB, free: 10.23 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003814/0.1757, allocations: 0.7882 MB / 384 MB, free: 9.41 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004838/0.1762, allocations: 75.25 kB / 384.1 MB, free: 9.336 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002558/0.1765, allocations: 91.41 kB / 384.2 MB, free: 9.246 MB / 318.1 MB Notification: Performance of SimCode: time 7.82e-07/0.1765, allocations: 0 / 384.2 MB, free: 9.246 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01777/0.1942, allocations: 7.543 MB / 391.8 MB, free: 1.879 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001927/0.1945, allocations: 198.6 kB / 391.9 MB, free: 1.633 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.985/2.179, allocations: 0 / 391.9 MB, free: 1.633 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat does not exist to compare? outputFormat=mat