Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_3_2_3_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.001077/0.001077, allocations: 98.62 kB / 16.95 MB, free: 6.891 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.001151/0.001152, allocations: 185.9 kB / 17.84 MB, free: 6.137 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.385/1.385, allocations: 205.4 MB / 224 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004553/0.0004553, allocations: 8 kB / 280.9 MB, free: 3.629 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1045, allocations: 47.57 MB / 328.4 MB, free: 3.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.00368/0.1082, allocations: 2.588 MB / 331 MB, free: 1.379 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002133/0.1104, allocations: 0.9321 MB / 332 MB, free: 448 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003968/0.1108, allocations: 7.938 kB / 332 MB, free: 440 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000296/0.1112, allocations: 47.62 kB / 332 MB, free: 392 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000392/0.1116, allocations: 115.1 kB / 332.1 MB, free: 276 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006264/0.1122, allocations: 167.7 kB / 332.3 MB, free: 108 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008564/0.1131, allocations: 0.5615 MB / 332.9 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002733/0.1134, allocations: 114.1 kB / 333 MB, free: 15.42 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005033/0.1139, allocations: 235.1 kB / 333.2 MB, free: 15.19 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00046/0.1143, allocations: 263 kB / 333.5 MB, free: 14.93 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001006/0.1145, allocations: 24 kB / 333.5 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002084/0.1147, allocations: 75.89 kB / 333.5 MB, free: 14.84 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000121/0.1148, allocations: 91.64 kB / 333.6 MB, free: 14.75 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001525/0.115, allocations: 105.5 kB / 333.7 MB, free: 14.64 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000469/0.1154, allocations: 427.1 kB / 334.2 MB, free: 14.22 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.1154, allocations: 0 / 334.2 MB, free: 14.22 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1155, allocations: 0 / 334.2 MB, free: 14.22 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.561e-05/0.1155, allocations: 0 / 334.2 MB, free: 14.22 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.00142/0.1169, allocations: 0.7134 MB / 334.9 MB, free: 13.46 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/0.117, allocations: 8.031 kB / 334.9 MB, free: 13.45 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001867/0.1172, allocations: 95.36 kB / 335 MB, free: 13.34 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001291/0.1173, allocations: 51.34 kB / 335 MB, free: 13.29 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004875/0.1178, allocations: 326.1 kB / 335.3 MB, free: 12.93 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.481e-05/0.1178, allocations: 29 kB / 335.4 MB, free: 12.91 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.396e-05/0.1179, allocations: 43.91 kB / 335.4 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009333/0.1189, allocations: 486.3 kB / 335.9 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.526e-05/0.1189, allocations: 8 kB / 335.9 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.277e-05/0.119, allocations: 16 kB / 335.9 MB, free: 12.36 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.251e-05/0.119, allocations: 8 kB / 335.9 MB, free: 12.35 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009312/0.1199, allocations: 0.4918 MB / 336.4 MB, free: 11.86 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002063/0.122, allocations: 1.153 MB / 337.6 MB, free: 10.65 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007792/0.1228, allocations: 400.8 kB / 338 MB, free: 10.25 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004976/0.1233, allocations: 278.1 kB / 338.2 MB, free: 9.98 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.121e-05/0.1234, allocations: 8.375 kB / 338.2 MB, free: 9.973 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.645e-05/0.1234, allocations: 39 kB / 338.3 MB, free: 9.926 MB / 286.1 MB Notification: Performance of pre-optimization done (n=50): time 1.523e-06/0.1234, allocations: 0 / 338.3 MB, free: 9.926 MB / 286.1 MB Notification: Performance of matching and sorting (n=56): time 0.004819/0.1282, allocations: 2.444 MB / 340.7 MB, free: 7.352 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.962e-05/0.1283, allocations: 55.97 kB / 340.8 MB, free: 7.285 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002918/0.1286, allocations: 283.3 kB / 341 MB, free: 7 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.09e-05/0.1287, allocations: 49.58 kB / 341.1 MB, free: 6.945 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001313/0.1288, allocations: 193.2 kB / 341.3 MB, free: 6.754 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001628/0.129, allocations: 193.3 kB / 341.5 MB, free: 6.562 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.607e-05/0.129, allocations: 12 kB / 341.5 MB, free: 6.551 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.1292, allocations: 354.8 kB / 341.8 MB, free: 6.195 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000463/0.1296, allocations: 241.2 kB / 342.1 MB, free: 5.961 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005017/0.1301, allocations: 296.8 kB / 342.4 MB, free: 5.664 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004159/0.1306, allocations: 211.2 kB / 342.6 MB, free: 5.461 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1306, allocations: 4 kB / 342.6 MB, free: 5.457 MB / 286.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001359/0.1319, allocations: 0.7484 MB / 343.3 MB, free: 4.695 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.132, allocations: 10.59 kB / 343.3 MB, free: 4.688 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.132, allocations: 4 kB / 343.3 MB, free: 4.684 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000896/0.1329, allocations: 0.4935 MB / 343.8 MB, free: 4.184 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004235/0.1333, allocations: 95.89 kB / 343.9 MB, free: 4.09 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001471/0.1348, allocations: 1.405 MB / 345.3 MB, free: 2.633 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004621/0.1353, allocations: 104.1 kB / 345.4 MB, free: 2.531 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.733e-05/0.1353, allocations: 23.98 kB / 345.4 MB, free: 2.508 MB / 286.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.000209/0.1356, allocations: 165.6 kB / 345.6 MB, free: 2.336 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.78e-05/0.1356, allocations: 39.53 kB / 345.6 MB, free: 2.297 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001431/0.1358, allocations: 59.73 kB / 345.7 MB, free: 2.234 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.1358, allocations: 8 kB / 345.7 MB, free: 2.227 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.807e-06/0.1358, allocations: 4 kB / 345.7 MB, free: 2.223 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.826e-06/0.1358, allocations: 7.938 kB / 345.7 MB, free: 2.215 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002695/0.1385, allocations: 1.493 MB / 347.2 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.1386, allocations: 0 / 347.2 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003519/0.1389, allocations: 87.89 kB / 347.3 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000736/0.1397, allocations: 481.5 kB / 347.8 MB, free: 80 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.973e-05/0.1397, allocations: 19.98 kB / 347.8 MB, free: 60 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001209/0.1409, allocations: 1.386 MB / 349.2 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.141, allocations: 0 / 349.2 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001966/0.1429, allocations: 1.096 MB / 350.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002111/0.1432, allocations: 172.6 kB / 350.4 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.543e-05/0.1433, allocations: 24 kB / 350.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003992/0.1437, allocations: 79.92 kB / 350.5 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002177/0.1439, allocations: 104.2 kB / 350.6 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.608e-05/0.1439, allocations: 31.91 kB / 350.7 MB, free: 13.06 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002042/0.1442, allocations: 201.9 kB / 350.9 MB, free: 12.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1442, allocations: 0 / 350.9 MB, free: 12.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004974/0.1447, allocations: 136 kB / 351 MB, free: 12.73 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.002435/0.1471, allocations: 1.683 MB / 352.7 MB, free: 11.01 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00125/0.1484, allocations: 0.5928 MB / 353.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.1484, allocations: 0 / 353.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007315/0.1491, allocations: 354.6 kB / 353.6 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005852/0.1497, allocations: 76.55 kB / 353.7 MB, free: 9.992 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007106/0.1568, allocations: 3.621 MB / 357.3 MB, free: 6.297 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004542/0.1573, allocations: 0.8241 MB / 358.2 MB, free: 5.449 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001757/0.1575, allocations: 39.28 kB / 358.2 MB, free: 5.41 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002042/0.1577, allocations: 131.4 kB / 358.3 MB, free: 5.281 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1577, allocations: 0 / 358.3 MB, free: 5.281 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0298/0.1875, allocations: 12.55 MB / 370.9 MB, free: 8.727 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000164/0.1877, allocations: 209.3 kB / 371.1 MB, free: 8.488 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.404/2.592, allocations: 0 / 371.1 MB, free: 8.488 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_Friction_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_Friction.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat