Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008019/0.0008019, allocations: 93.56 kB / 17 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008546/0.0008546, allocations: 199 kB / 17.91 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 227.4 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002373/0.0002374, allocations: 4 kB / 306.8 MB, free: 1.496 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1198, allocations: 51.5 MB / 358.3 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.003221/0.1231, allocations: 2.409 MB / 360.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002112/0.1252, allocations: 1.186 MB / 361.9 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001594/0.1254, allocations: 7.938 kB / 361.9 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003038/0.1257, allocations: 67.55 kB / 362 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005062/0.1262, allocations: 188 kB / 362.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004518/0.1267, allocations: 183.8 kB / 362.3 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006519/0.1273, allocations: 0.608 MB / 363 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002015/0.1275, allocations: 99.08 kB / 363 MB, free: 9.234 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004012/0.128, allocations: 291.1 kB / 363.3 MB, free: 8.949 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004095/0.1284, allocations: 323 kB / 363.6 MB, free: 8.633 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.77e-05/0.1284, allocations: 32 kB / 363.7 MB, free: 8.602 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002428/0.1287, allocations: 107.9 kB / 363.8 MB, free: 8.496 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002439/0.129, allocations: 127.6 kB / 363.9 MB, free: 8.371 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.72e-05/0.1291, allocations: 101.5 kB / 364 MB, free: 8.266 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005468/0.1296, allocations: 0.5146 MB / 364.5 MB, free: 7.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1296, allocations: 0 / 364.5 MB, free: 7.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.1296, allocations: 3.938 kB / 364.5 MB, free: 7.746 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.113e-06/0.1296, allocations: 4 kB / 364.5 MB, free: 7.742 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001451/0.1311, allocations: 0.7663 MB / 365.3 MB, free: 6.926 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/0.1312, allocations: 8.031 kB / 365.3 MB, free: 6.918 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001117/0.1313, allocations: 78.53 kB / 365.4 MB, free: 6.832 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003746/0.1317, allocations: 71.41 kB / 365.5 MB, free: 6.762 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005263/0.1322, allocations: 361.2 kB / 365.8 MB, free: 6.367 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001379/0.1323, allocations: 100.3 kB / 365.9 MB, free: 6.258 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.09e-05/0.1324, allocations: 44 kB / 365.9 MB, free: 6.215 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001068/0.1335, allocations: 0.5527 MB / 366.5 MB, free: 5.652 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.057e-05/0.1335, allocations: 4 kB / 366.5 MB, free: 5.648 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.367e-05/0.1336, allocations: 16 kB / 366.5 MB, free: 5.633 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.197e-05/0.1336, allocations: 12 kB / 366.5 MB, free: 5.621 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001356/0.135, allocations: 0.6206 MB / 367.2 MB, free: 5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00263/0.1376, allocations: 1.337 MB / 368.5 MB, free: 3.605 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001261/0.1389, allocations: 0.5248 MB / 369 MB, free: 3.066 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006497/0.1396, allocations: 306.4 kB / 369.3 MB, free: 2.766 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.316e-05/0.1396, allocations: 12.55 kB / 369.3 MB, free: 2.754 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.837e-05/0.1397, allocations: 35.12 kB / 369.4 MB, free: 2.711 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 3.847e-06/0.1397, allocations: 4 kB / 369.4 MB, free: 2.707 MB / 302.1 MB Notification: Performance of matching and sorting (n=70): time 0.2336/0.3733, allocations: 2.808 MB / 372.2 MB, free: 19.87 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.378e-05/0.3734, allocations: 88.45 kB / 372.3 MB, free: 19.78 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006397/0.374, allocations: 348.1 kB / 372.6 MB, free: 19.67 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001007/0.3741, allocations: 44.41 kB / 372.6 MB, free: 19.64 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/0.3743, allocations: 168 kB / 372.8 MB, free: 19.56 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002165/0.3745, allocations: 228.8 kB / 373 MB, free: 19.46 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.095e-05/0.3745, allocations: 12.44 kB / 373 MB, free: 19.46 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.3746, allocations: 351.6 kB / 373.4 MB, free: 19.14 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006404/0.3753, allocations: 270.5 kB / 373.6 MB, free: 19.14 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006993/0.376, allocations: 338.7 kB / 374 MB, free: 19.11 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006343/0.3766, allocations: 241 kB / 374.2 MB, free: 19.1 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3767, allocations: 0 / 374.2 MB, free: 19.1 MB / 302.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.002007/0.3787, allocations: 0.8436 MB / 375.1 MB, free: 19.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.025e-05/0.3787, allocations: 9.766 kB / 375.1 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.3787, allocations: 0.5312 kB / 375.1 MB, free: 19.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001122/0.3799, allocations: 427 kB / 375.5 MB, free: 18.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004093/0.3803, allocations: 90.59 kB / 375.6 MB, free: 18.94 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001143/0.3814, allocations: 1.006 MB / 376.6 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005242/0.382, allocations: 81.5 kB / 376.7 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.34e-05/0.382, allocations: 27.92 kB / 376.7 MB, free: 18.19 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 33} Notification: Performance of prepare postOptimizeDAE: time 0.0002487/0.3823, allocations: 191.6 kB / 376.9 MB, free: 18.03 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.623e-05/0.3824, allocations: 44.06 kB / 376.9 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001569/0.3826, allocations: 64.48 kB / 377 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.3826, allocations: 6.875 kB / 377 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/0.3826, allocations: 0 / 377 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.3826, allocations: 5.266 kB / 377 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003139/0.3858, allocations: 1.706 MB / 378.7 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.778e-06/0.3858, allocations: 0 / 378.7 MB, free: 17.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004071/0.3862, allocations: 91.53 kB / 378.8 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009488/0.3872, allocations: 395.5 kB / 379.2 MB, free: 16.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.218e-05/0.3872, allocations: 19.83 kB / 379.2 MB, free: 16.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001054/0.3883, allocations: 0.9683 MB / 380.2 MB, free: 16.26 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.3883, allocations: 0 / 380.2 MB, free: 16.26 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00221/0.3905, allocations: 1.225 MB / 381.4 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002602/0.3908, allocations: 195.3 kB / 381.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.199e-05/0.3909, allocations: 14.59 kB / 381.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004248/0.3913, allocations: 75.45 kB / 381.7 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002356/0.3916, allocations: 101.2 kB / 381.8 MB, free: 15.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.558e-05/0.3916, allocations: 32.62 kB / 381.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003083/0.3919, allocations: 249.3 kB / 382 MB, free: 15.36 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.392, allocations: 0 / 382 MB, free: 15.36 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005535/0.3925, allocations: 143.1 kB / 382.2 MB, free: 15.34 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 30} Notification: Performance of Backend phase and start with SimCode phase: time 0.003182/0.3957, allocations: 2.037 MB / 384.2 MB, free: 14.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001624/0.3973, allocations: 0.6756 MB / 384.9 MB, free: 13.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.3974, allocations: 0 / 384.9 MB, free: 13.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008656/0.3982, allocations: 384.6 kB / 385.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005564/0.3988, allocations: 63.47 kB / 385.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006296/0.4051, allocations: 3.336 MB / 388.7 MB, free: 12.13 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003037/0.4055, allocations: 0.8277 MB / 389.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003399/0.4058, allocations: 81.47 kB / 389.6 MB, free: 11.4 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002769/0.4061, allocations: 145 kB / 389.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of SimCode: time 8.52e-07/0.4061, allocations: 0 / 389.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0263/0.4324, allocations: 12.84 MB / 402.6 MB, free: 2.656 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000173/0.4326, allocations: 257.2 kB / 402.8 MB, free: 2.316 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.139/2.572, allocations: 0 / 402.8 MB, free: 2.316 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat does not exist to compare? outputFormat=mat