Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.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.Backlash,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Backlash,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001068/0.001068, allocations: 96.25 kB / 17 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001502/0.001502, allocations: 194.5 kB / 17.9 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.3 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002231/0.0002232, allocations: 8 kB / 306.8 MB, free: 1.496 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1208, allocations: 51.49 MB / 358.3 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.002608/0.1235, allocations: 2.056 MB / 360.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001208/0.1247, allocations: 0.737 MB / 361.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001083/0.1248, allocations: 4 kB / 361.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000119/0.125, allocations: 31.7 kB / 361.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001781/0.1251, allocations: 91.3 kB / 361.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002979/0.1254, allocations: 91.89 kB / 361.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003828/0.1258, allocations: 422.1 kB / 361.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001654/0.126, allocations: 73.06 kB / 361.8 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001951/0.1262, allocations: 155.5 kB / 361.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002174/0.1264, allocations: 187.3 kB / 362.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.826e-05/0.1265, allocations: 24 kB / 362.2 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.911e-05/0.1265, allocations: 20 kB / 362.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.986e-05/0.1266, allocations: 59.81 kB / 362.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.294e-05/0.1267, allocations: 77.58 kB / 362.3 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002925/0.127, allocations: 295.4 kB / 362.6 MB, free: 9.684 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.127, allocations: 0 / 362.6 MB, free: 9.684 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.127, allocations: 0 / 362.6 MB, free: 9.684 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.061e-06/0.127, allocations: 0 / 362.6 MB, free: 9.684 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001415/0.1284, allocations: 0.6628 MB / 363.3 MB, free: 8.973 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.097e-05/0.1285, allocations: 16.02 kB / 363.3 MB, free: 8.957 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.058e-05/0.1286, allocations: 62.55 kB / 363.3 MB, free: 8.887 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.381e-05/0.1287, allocations: 35.62 kB / 363.4 MB, free: 8.852 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003885/0.1291, allocations: 274.3 kB / 363.6 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003329/0.1294, allocations: 131.9 kB / 363.8 MB, free: 8.402 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.748e-05/0.1295, allocations: 24 kB / 363.8 MB, free: 8.379 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008984/0.1304, allocations: 415.9 kB / 364.2 MB, free: 7.957 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.55e-05/0.1304, allocations: 11.89 kB / 364.2 MB, free: 7.945 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.29e-05/0.1305, allocations: 8 kB / 364.2 MB, free: 7.938 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.436e-05/0.1305, allocations: 8 kB / 364.2 MB, free: 7.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001175/0.1317, allocations: 463.1 kB / 364.7 MB, free: 7.484 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001258/0.1329, allocations: 0.9667 MB / 365.6 MB, free: 6.461 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001008/0.1339, allocations: 455.5 kB / 366.1 MB, free: 5.988 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005894/0.1345, allocations: 258.3 kB / 366.3 MB, free: 5.727 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.915e-05/0.1346, allocations: 7.984 kB / 366.3 MB, free: 5.719 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.258e-05/0.1346, allocations: 38.56 kB / 366.4 MB, free: 5.672 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 1.613e-06/0.1346, allocations: 0 / 366.4 MB, free: 5.672 MB / 302.1 MB Notification: Performance of matching and sorting (n=38): time 0.004704/0.1393, allocations: 2.515 MB / 368.9 MB, free: 2.895 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.985e-05/0.1394, allocations: 110.8 kB / 369 MB, free: 2.762 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000219/0.1397, allocations: 203.2 kB / 369.2 MB, free: 2.551 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.038e-05/0.1397, allocations: 29.7 kB / 369.2 MB, free: 2.516 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.945e-05/0.1398, allocations: 148.6 kB / 369.4 MB, free: 2.367 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001193/0.1399, allocations: 141.9 kB / 369.5 MB, free: 2.227 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.34e-05/0.14, allocations: 4 kB / 369.5 MB, free: 2.223 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.1401, allocations: 347.7 kB / 369.9 MB, free: 1.875 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002857/0.1404, allocations: 112.8 kB / 370 MB, free: 1.762 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003171/0.1407, allocations: 165.5 kB / 370.1 MB, free: 1.582 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002978/0.1411, allocations: 134.2 kB / 370.3 MB, free: 1.453 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.233e-06/0.1411, allocations: 0 / 370.3 MB, free: 1.453 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007724/0.1418, allocations: 371.5 kB / 370.6 MB, free: 1.086 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.302e-05/0.1419, allocations: 4 kB / 370.6 MB, free: 1.082 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.1419, allocations: 8.094 kB / 370.6 MB, free: 1.074 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.033e-05/0.1419, allocations: 7.984 kB / 370.6 MB, free: 1.066 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006437/0.1426, allocations: 163.8 kB / 370.8 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.845e-05/0.1426, allocations: 11.89 kB / 370.8 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002003/0.1428, allocations: 31.98 kB / 370.8 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.133e-05/0.1428, allocations: 12 kB / 370.9 MB, free: 0.8516 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * 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.0001552/0.143, allocations: 150.8 kB / 371 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.539e-05/0.1431, allocations: 23.72 kB / 371 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.269e-05/0.1432, allocations: 37.45 kB / 371.1 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.64e-06/0.1432, allocations: 8 kB / 371.1 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.1432, allocations: 4 kB / 371.1 MB, free: 0.625 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.999e-06/0.1432, allocations: 7.938 kB / 371.1 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2081/0.3513, allocations: 1.38 MB / 372.5 MB, free: 19.35 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.177e-06/0.3514, allocations: 2.859 kB / 372.5 MB, free: 19.35 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009164/0.3523, allocations: 203.7 kB / 372.7 MB, free: 19.35 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.471e-05/0.3523, allocations: 4.312 kB / 372.7 MB, free: 19.35 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.718e-05/0.3524, allocations: 13.97 kB / 372.7 MB, free: 19.35 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.415e-05/0.3524, allocations: 13.08 kB / 372.7 MB, free: 19.35 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.452e-06/0.3524, allocations: 6.188 kB / 372.7 MB, free: 19.35 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002057/0.3545, allocations: 1.044 MB / 373.7 MB, free: 19.01 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000149/0.3547, allocations: 128.1 kB / 373.9 MB, free: 18.92 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.987e-05/0.3547, allocations: 16.7 kB / 373.9 MB, free: 18.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003995/0.3551, allocations: 59.33 kB / 373.9 MB, free: 18.92 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001239/0.3552, allocations: 46.53 kB / 374 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.342e-05/0.3553, allocations: 17.27 kB / 374 MB, free: 18.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001632/0.3555, allocations: 148.5 kB / 374.2 MB, free: 18.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3555, allocations: 0 / 374.2 MB, free: 18.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005053/0.356, allocations: 81.44 kB / 374.2 MB, free: 18.84 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (elastoBacklash2.phi_rel,elastoBacklash2.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,springDamper.phi_rel,springDamper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002142/0.3581, allocations: 1.595 MB / 375.8 MB, free: 17.95 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001004/0.3591, allocations: 399 kB / 376.2 MB, free: 17.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.3592, allocations: 5.562 kB / 376.2 MB, free: 17.92 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006927/0.3599, allocations: 281.8 kB / 376.5 MB, free: 17.91 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006853/0.3605, allocations: 78.7 kB / 376.6 MB, free: 17.89 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006603/0.3672, allocations: 2.751 MB / 379.3 MB, free: 16.8 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000252/0.3674, allocations: 0.768 MB / 380.1 MB, free: 16.1 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002072/0.3677, allocations: 37.8 kB / 380.1 MB, free: 16.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001848/0.3678, allocations: 94.42 kB / 380.2 MB, free: 16.03 MB / 302.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3679, allocations: 4 kB / 380.2 MB, free: 16.03 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01726/0.3851, allocations: 6.315 MB / 386.5 MB, free: 14.57 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001187/0.3853, allocations: 178.9 kB / 386.7 MB, free: 14.33 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.925/2.31, allocations: 0 / 386.7 MB, free: 14.33 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Backlash_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Backlash.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat does not exist to compare? outputFormat=mat