Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.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.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Friction",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.001042/0.001042, allocations: 92.91 kB / 16.3 MB, free: 5.996 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.001138/0.001138, allocations: 183.8 kB / 17.2 MB, free: 5.914 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.379/1.379, allocations: 223.2 MB / 241.1 MB, free: 5.371 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003625/0.0003625, allocations: 7.172 kB / 300.8 MB, free: 5.949 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1117, allocations: 50.42 MB / 351.2 MB, free: 11.6 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003052/0.1148, allocations: 2.465 MB / 353.7 MB, free: 9.117 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001465/0.1163, allocations: 0.9122 MB / 354.6 MB, free: 8.199 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001694/0.1164, allocations: 11.94 kB / 354.6 MB, free: 8.188 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001651/0.1166, allocations: 47.67 kB / 354.7 MB, free: 8.141 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002914/0.1169, allocations: 139.6 kB / 354.8 MB, free: 8.004 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005383/0.1175, allocations: 171.6 kB / 355 MB, free: 7.836 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005648/0.118, allocations: 396.3 kB / 355.3 MB, free: 7.449 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002024/0.1183, allocations: 102.2 kB / 355.4 MB, free: 7.344 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003183/0.1186, allocations: 239.2 kB / 355.7 MB, free: 7.109 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003309/0.1189, allocations: 255 kB / 355.9 MB, free: 6.859 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.805e-05/0.119, allocations: 28 kB / 356 MB, free: 6.832 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001573/0.1192, allocations: 75.88 kB / 356 MB, free: 6.758 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001148/0.1193, allocations: 91.64 kB / 356.1 MB, free: 6.668 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001017/0.1194, allocations: 101.5 kB / 356.2 MB, free: 6.562 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004197/0.1198, allocations: 410.9 kB / 356.6 MB, free: 6.16 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.1198, allocations: 0 / 356.6 MB, free: 6.16 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1198, allocations: 4 kB / 356.6 MB, free: 6.156 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.887e-06/0.1199, allocations: 0 / 356.6 MB, free: 6.156 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.00131/0.1212, allocations: 0.7289 MB / 357.4 MB, free: 5.379 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.483e-05/0.1212, allocations: 12.03 kB / 357.4 MB, free: 5.367 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001425/0.1214, allocations: 79.52 kB / 357.4 MB, free: 5.277 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001023/0.1215, allocations: 55.34 kB / 357.5 MB, free: 5.223 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004201/0.1219, allocations: 318.2 kB / 357.8 MB, free: 4.871 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.925e-05/0.122, allocations: 29 kB / 357.8 MB, free: 4.844 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.247e-05/0.122, allocations: 47.91 kB / 357.9 MB, free: 4.797 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008725/0.1229, allocations: 486.3 kB / 358.4 MB, free: 4.316 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.029e-05/0.123, allocations: 0 / 358.4 MB, free: 4.316 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.032e-05/0.123, allocations: 19.95 kB / 358.4 MB, free: 4.297 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.299e-05/0.123, allocations: 15.94 kB / 358.4 MB, free: 4.281 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009216/0.124, allocations: 0.4957 MB / 358.9 MB, free: 3.785 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002098/0.1261, allocations: 1.164 MB / 360.1 MB, free: 2.57 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007829/0.1269, allocations: 401.6 kB / 360.4 MB, free: 2.168 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.687e-05/0.1269, allocations: 8.422 kB / 360.5 MB, free: 2.16 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.406e-05/0.1269, allocations: 35 kB / 360.5 MB, free: 2.117 MB / 286.1 MB Notification: Performance of pre-optimization done (n=50): time 1.703e-06/0.1269, allocations: 4 kB / 360.5 MB, free: 2.113 MB / 286.1 MB Notification: Performance of matching and sorting (n=56): time 0.004953/0.1319, allocations: 2.426 MB / 362.9 MB, free: 15.56 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.905e-05/0.132, allocations: 55.97 kB / 363 MB, free: 15.49 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002776/0.1322, allocations: 287.2 kB / 363.3 MB, free: 15.2 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.255e-05/0.1323, allocations: 37.7 kB / 363.3 MB, free: 15.16 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001623/0.1325, allocations: 189.3 kB / 363.5 MB, free: 14.97 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000153/0.1326, allocations: 193.3 kB / 363.7 MB, free: 14.78 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.401e-05/0.1327, allocations: 12 kB / 363.7 MB, free: 14.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.1328, allocations: 350.8 kB / 364 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004564/0.1333, allocations: 249.2 kB / 364.3 MB, free: 14.18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005288/0.1338, allocations: 292.8 kB / 364.5 MB, free: 13.89 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004004/0.1342, allocations: 207.2 kB / 364.7 MB, free: 13.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.1342, allocations: 0 / 364.7 MB, free: 13.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001447/0.1357, allocations: 0.7562 MB / 365.5 MB, free: 12.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.457e-05/0.1357, allocations: 7.953 kB / 365.5 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.447e-06/0.1357, allocations: 3.984 kB / 365.5 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009237/0.1367, allocations: 0.4896 MB / 366 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000363/0.1371, allocations: 99.83 kB / 366.1 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001259/0.1383, allocations: 1.393 MB / 367.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005362/0.1389, allocations: 108.1 kB / 367.6 MB, free: 10.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.624e-05/0.1389, allocations: 20 kB / 367.6 MB, free: 10.74 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 56 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002432/0.1392, allocations: 165.6 kB / 367.8 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.026e-05/0.1393, allocations: 39.53 kB / 367.8 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001213/0.1394, allocations: 59.73 kB / 367.9 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.1394, allocations: 4 kB / 367.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.1394, allocations: 4 kB / 367.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.1394, allocations: 11.94 kB / 367.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002689/0.1421, allocations: 1.474 MB / 369.4 MB, free: 8.895 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.1421, allocations: 4 kB / 369.4 MB, free: 8.891 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003846/0.1425, allocations: 87.84 kB / 369.5 MB, free: 8.805 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008003/0.1433, allocations: 481.4 kB / 369.9 MB, free: 8.328 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.1e-05/0.1434, allocations: 23.91 kB / 370 MB, free: 8.305 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001237/0.1447, allocations: 1.37 MB / 371.3 MB, free: 6.883 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/0.1447, allocations: 7.891 kB / 371.3 MB, free: 6.875 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002073/0.1468, allocations: 1.159 MB / 372.5 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002811/0.1471, allocations: 160.6 kB / 372.6 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.041e-05/0.1471, allocations: 23.98 kB / 372.7 MB, free: 5.449 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000429/0.1476, allocations: 76.06 kB / 372.7 MB, free: 5.375 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002137/0.1478, allocations: 120.1 kB / 372.9 MB, free: 5.258 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.213e-05/0.1479, allocations: 19.98 kB / 372.9 MB, free: 5.238 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002097/0.1481, allocations: 205.9 kB / 373.1 MB, free: 5.035 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1481, allocations: 0 / 373.1 MB, free: 5.035 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005099/0.1486, allocations: 136 kB / 373.2 MB, free: 4.902 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002563/0.1512, allocations: 2.086 MB / 375.3 MB, free: 2.75 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001212/0.1524, allocations: 0.6006 MB / 375.9 MB, free: 2.152 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/0.1524, allocations: 4.062 kB / 375.9 MB, free: 2.148 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000654/0.1531, allocations: 338.3 kB / 376.2 MB, free: 1.816 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004421/0.1535, allocations: 60.89 kB / 376.3 MB, free: 1.758 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007215/0.1607, allocations: 3.789 MB / 380.1 MB, free: 13.9 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004145/0.1612, allocations: 0.8361 MB / 380.9 MB, free: 13.04 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001819/0.1614, allocations: 47.27 kB / 381 MB, free: 12.99 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002039/0.1616, allocations: 135.4 kB / 381.1 MB, free: 12.86 MB / 318.1 MB Notification: Performance of SimCode: time 1.342e-06/0.1616, allocations: 0 / 381.1 MB, free: 12.86 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02689/0.1885, allocations: 12.47 MB / 393.6 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001924/0.1888, allocations: 208.9 kB / 393.8 MB, free: 360 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.013/2.202, allocations: 6.844 kB / 393.8 MB, free: 360 kB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Friction_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Friction.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat