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.001036/0.001036, allocations: 87.19 kB / 16.31 MB, free: 5.586 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.0011/0.001101, allocations: 175.3 kB / 17.2 MB, free: 5.547 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.354/1.354, allocations: 223.2 MB / 241.2 MB, free: 328 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002658/0.000266, allocations: 8 kB / 300.9 MB, free: 6.355 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1124, allocations: 50.42 MB / 351.3 MB, free: 3.922 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003169/0.1156, allocations: 2.576 MB / 353.9 MB, free: 1.328 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001724/0.1174, allocations: 0.8925 MB / 354.8 MB, free: 440 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001877/0.1176, allocations: 11.94 kB / 354.8 MB, free: 428 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002159/0.1178, allocations: 43.62 kB / 354.9 MB, free: 384 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002274/0.1181, allocations: 115.1 kB / 355 MB, free: 268 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004956/0.1186, allocations: 163.8 kB / 355.1 MB, free: 104 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006067/0.1192, allocations: 0.5616 MB / 355.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002278/0.1194, allocations: 102.2 kB / 355.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003269/0.1198, allocations: 239.1 kB / 356 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003668/0.1201, allocations: 267 kB / 356.3 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.096e-05/0.1202, allocations: 28 kB / 356.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001686/0.1204, allocations: 67.95 kB / 356.4 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001475/0.1205, allocations: 95.64 kB / 356.5 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001123/0.1207, allocations: 97.45 kB / 356.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004359/0.1211, allocations: 419.1 kB / 357 MB, free: 14.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.685e-06/0.1211, allocations: 0 / 357 MB, free: 14.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.1211, allocations: 3.828 kB / 357 MB, free: 14.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.194e-06/0.1212, allocations: 0 / 357 MB, free: 14.23 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001334/0.1225, allocations: 0.7289 MB / 357.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.52e-05/0.1226, allocations: 12.03 kB / 357.7 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001431/0.1227, allocations: 79.52 kB / 357.8 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.598e-05/0.1228, allocations: 55.34 kB / 357.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00046/0.1233, allocations: 318.2 kB / 358.2 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.99e-05/0.1233, allocations: 33 kB / 358.2 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.95e-05/0.1234, allocations: 47.91 kB / 358.2 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008878/0.1243, allocations: 486.2 kB / 358.7 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.945e-05/0.1243, allocations: 0 / 358.7 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.869e-05/0.1244, allocations: 19.95 kB / 358.7 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.684e-05/0.1244, allocations: 12 kB / 358.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009458/0.1254, allocations: 499.7 kB / 359.2 MB, free: 11.87 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002124/0.1275, allocations: 1.168 MB / 360.4 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008749/0.1284, allocations: 396.8 kB / 360.8 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005537/0.129, allocations: 278 kB / 361.1 MB, free: 9.984 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.786e-05/0.129, allocations: 8.438 kB / 361.1 MB, free: 9.977 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.82e-05/0.1291, allocations: 39 kB / 361.1 MB, free: 9.93 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.084e-06/0.1291, allocations: 0 / 361.1 MB, free: 9.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.005205/0.1343, allocations: 2.448 MB / 363.6 MB, free: 7.352 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.416e-05/0.1344, allocations: 59.97 kB / 363.6 MB, free: 7.281 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003206/0.1347, allocations: 279.3 kB / 363.9 MB, free: 7 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.333e-05/0.1348, allocations: 45.69 kB / 363.9 MB, free: 6.949 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001517/0.1349, allocations: 189.3 kB / 364.1 MB, free: 6.762 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001759/0.1351, allocations: 189.3 kB / 364.3 MB, free: 6.574 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.489e-05/0.1351, allocations: 11.98 kB / 364.3 MB, free: 6.562 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001773/0.1353, allocations: 354.7 kB / 364.7 MB, free: 6.207 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004656/0.1358, allocations: 245.2 kB / 364.9 MB, free: 5.969 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005013/0.1363, allocations: 296.8 kB / 365.2 MB, free: 5.676 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003912/0.1367, allocations: 203.2 kB / 365.4 MB, free: 5.477 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.1367, allocations: 3.984 kB / 365.4 MB, free: 5.473 MB / 302.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001477/0.1382, allocations: 0.7522 MB / 366.1 MB, free: 4.707 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.828e-05/0.1383, allocations: 4 kB / 366.2 MB, free: 4.703 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.1383, allocations: 0 / 366.2 MB, free: 4.703 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001089/0.1394, allocations: 0.5013 MB / 366.7 MB, free: 4.195 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003851/0.1398, allocations: 99.83 kB / 366.8 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001495/0.1413, allocations: 1.397 MB / 368.1 MB, free: 2.648 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004765/0.1418, allocations: 108.1 kB / 368.3 MB, free: 2.543 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.427e-05/0.1418, allocations: 16 kB / 368.3 MB, free: 2.527 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 (57): * Single equations (assignments): 55 * 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 8,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002688/0.1421, allocations: 177.5 kB / 368.4 MB, free: 2.344 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.067e-05/0.1422, allocations: 43.48 kB / 368.5 MB, free: 2.301 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001439/0.1423, allocations: 63.73 kB / 368.5 MB, free: 2.238 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.927e-06/0.1423, allocations: 4 kB / 368.6 MB, free: 2.234 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.776e-06/0.1424, allocations: 3.938 kB / 368.6 MB, free: 2.23 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.1424, allocations: 3.984 kB / 368.6 MB, free: 2.227 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002672/0.145, allocations: 1.489 MB / 370 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.1451, allocations: 0 / 370 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003507/0.1454, allocations: 83.89 kB / 370.1 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007472/0.1462, allocations: 489.6 kB / 370.6 MB, free: 92 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.722e-05/0.1462, allocations: 27.91 kB / 370.6 MB, free: 64 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2205/0.3667, allocations: 1.356 MB / 372 MB, free: 24.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.668e-06/0.3668, allocations: 5.25 kB / 372 MB, free: 24.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002194/0.369, allocations: 1.109 MB / 373.1 MB, free: 23.86 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002226/0.3692, allocations: 163.9 kB / 373.3 MB, free: 23.77 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.442e-05/0.3693, allocations: 21.84 kB / 373.3 MB, free: 23.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004135/0.3697, allocations: 80.67 kB / 373.4 MB, free: 23.77 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002507/0.37, allocations: 112.8 kB / 373.5 MB, free: 23.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.49e-05/0.37, allocations: 23.84 kB / 373.5 MB, free: 23.77 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001976/0.3702, allocations: 208.2 kB / 373.7 MB, free: 23.68 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3702, allocations: 0 / 373.7 MB, free: 23.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005017/0.3707, allocations: 132 kB / 373.8 MB, free: 23.68 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 (clutch.mode,clutch.startForward,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward) * 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 6,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.002462/0.3732, allocations: 1.693 MB / 375.5 MB, free: 22.95 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001248/0.3745, allocations: 0.5982 MB / 376.1 MB, free: 22.9 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.3745, allocations: 0 / 376.1 MB, free: 22.9 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006953/0.3752, allocations: 352.7 kB / 376.5 MB, free: 22.8 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005875/0.3758, allocations: 70.06 kB / 376.5 MB, free: 22.78 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00669/0.3825, allocations: 3.611 MB / 380.1 MB, free: 21.09 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002888/0.3828, allocations: 0.8235 MB / 381 MB, free: 20.38 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001965/0.383, allocations: 43.3 kB / 381 MB, free: 20.37 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001847/0.3832, allocations: 135.2 kB / 381.1 MB, free: 20.28 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3832, allocations: 4 kB / 381.2 MB, free: 20.27 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02622/0.4094, allocations: 12.54 MB / 393.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001495/0.4096, allocations: 223.7 kB / 393.9 MB, free: 14.42 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.151/2.561, allocations: 0 / 393.9 MB, free: 14.42 MB / 302.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