Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.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.Backlash,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Backlash,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Backlash",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.001074/0.001079, allocations: 98.77 kB / 16.31 MB, free: 6.461 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.001174/0.001174, allocations: 178.2 kB / 17.2 MB, free: 6.344 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.382/1.382, allocations: 223.2 MB / 241.1 MB, free: 392 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003373/0.0003375, allocations: 9.094 kB / 300.8 MB, free: 6.359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.111, allocations: 50.41 MB / 351.2 MB, free: 3.93 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.002612/0.1137, allocations: 1.915 MB / 353.1 MB, free: 2 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001638/0.1153, allocations: 0.7177 MB / 353.9 MB, free: 1.281 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001386/0.1155, allocations: 4 kB / 353.9 MB, free: 1.277 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.012e-05/0.1156, allocations: 35.7 kB / 353.9 MB, free: 1.242 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003349/0.1159, allocations: 119.7 kB / 354 MB, free: 1.125 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004173/0.1164, allocations: 91.81 kB / 354.1 MB, free: 1.035 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004737/0.1169, allocations: 295.4 kB / 354.4 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002097/0.1171, allocations: 76.97 kB / 354.5 MB, free: 0.668 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002825/0.1174, allocations: 159.5 kB / 354.6 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002819/0.1177, allocations: 183.4 kB / 354.8 MB, free: 340 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.646e-05/0.1177, allocations: 20 kB / 354.8 MB, free: 320 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.585e-05/0.1178, allocations: 20 kB / 354.8 MB, free: 300 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.518e-05/0.1179, allocations: 67.8 kB / 354.9 MB, free: 232 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.956e-05/0.118, allocations: 77.52 kB / 355 MB, free: 148 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003973/0.1184, allocations: 287.5 kB / 355.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.886e-06/0.1184, allocations: 0 / 355.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1184, allocations: 0 / 355.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.1185, allocations: 0 / 355.3 MB, free: 15.86 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.001965/0.1204, allocations: 0.6784 MB / 355.9 MB, free: 15.14 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.224e-05/0.1205, allocations: 8.031 kB / 356 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001037/0.1206, allocations: 58.55 kB / 356 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001195/0.1207, allocations: 39.58 kB / 356.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004268/0.1212, allocations: 266.3 kB / 356.3 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004957/0.1217, allocations: 127.9 kB / 356.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.561e-05/0.1218, allocations: 35.98 kB / 356.5 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00129/0.1231, allocations: 404 kB / 356.9 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.332e-05/0.1231, allocations: 11.89 kB / 356.9 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.191e-05/0.1232, allocations: 15.89 kB / 356.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.66e-05/0.1232, allocations: 8 kB / 356.9 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001898/0.1251, allocations: 459.9 kB / 357.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001924/0.1271, allocations: 0.9553 MB / 358.3 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001702/0.1288, allocations: 463.7 kB / 358.8 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.06e-05/0.1289, allocations: 4 kB / 358.8 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.278e-05/0.1289, allocations: 46.55 kB / 358.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 2.605e-06/0.1289, allocations: 0 / 358.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=38): time 0.007034/0.136, allocations: 2.504 MB / 361.3 MB, free: 9.344 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.479e-05/0.1361, allocations: 110.8 kB / 361.4 MB, free: 9.211 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002075/0.1363, allocations: 199.2 kB / 361.6 MB, free: 9.004 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.843e-05/0.1363, allocations: 37.7 kB / 361.7 MB, free: 8.961 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001054/0.1364, allocations: 152.6 kB / 361.8 MB, free: 8.809 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/0.1366, allocations: 134 kB / 361.9 MB, free: 8.676 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.743e-05/0.1366, allocations: 15.98 kB / 361.9 MB, free: 8.66 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.1367, allocations: 339 kB / 362.3 MB, free: 8.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003093/0.137, allocations: 112.8 kB / 362.4 MB, free: 8.211 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003532/0.1374, allocations: 169.4 kB / 362.6 MB, free: 8.027 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003248/0.1377, allocations: 135 kB / 362.7 MB, free: 7.898 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.1378, allocations: 0 / 362.7 MB, free: 7.898 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008236/0.1386, allocations: 375.8 kB / 363.1 MB, free: 7.527 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.1386, allocations: 4 kB / 363.1 MB, free: 7.523 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.1386, allocations: 4 kB / 363.1 MB, free: 7.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.1387, allocations: 0 / 363.1 MB, free: 7.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007552/0.1394, allocations: 171.9 kB / 363.2 MB, free: 7.352 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.115e-05/0.1394, allocations: 7.938 kB / 363.2 MB, free: 7.344 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000247/0.1397, allocations: 27.98 kB / 363.3 MB, free: 7.316 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.341e-05/0.1397, allocations: 12 kB / 363.3 MB, free: 7.305 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.0002053/0.1399, allocations: 158.5 kB / 363.4 MB, free: 7.141 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001179/0.1401, allocations: 31.72 kB / 363.5 MB, free: 7.109 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.487e-05/0.1401, allocations: 25.53 kB / 363.5 MB, free: 7.086 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.1402, allocations: 4 kB / 363.5 MB, free: 7.082 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-05/0.1402, allocations: 4 kB / 363.5 MB, free: 7.078 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.1402, allocations: 3.984 kB / 363.5 MB, free: 7.074 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002616/0.1428, allocations: 1.408 MB / 364.9 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.1428, allocations: 0 / 364.9 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008916/0.1437, allocations: 208 kB / 365.1 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.534e-06/0.1437, allocations: 4 kB / 365.1 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.044e-05/0.1438, allocations: 12 kB / 365.1 MB, free: 5.352 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.061e-06/0.1438, allocations: 11.94 kB / 365.1 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.1438, allocations: 4 kB / 365.1 MB, free: 5.336 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002322/0.1461, allocations: 1.141 MB / 366.3 MB, free: 4.105 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001489/0.1463, allocations: 124.8 kB / 366.4 MB, free: 3.965 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.612e-05/0.1464, allocations: 8 kB / 366.4 MB, free: 3.957 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004542/0.1468, allocations: 63.94 kB / 366.5 MB, free: 3.895 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000129/0.147, allocations: 43.84 kB / 366.5 MB, free: 3.852 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.12e-05/0.147, allocations: 19.98 kB / 366.5 MB, free: 3.832 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001705/0.1472, allocations: 148.6 kB / 366.7 MB, free: 3.688 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1472, allocations: 0 / 366.7 MB, free: 3.688 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005014/0.1477, allocations: 84 kB / 366.8 MB, free: 3.605 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.002781/0.1505, allocations: 2.255 MB / 369 MB, free: 1.273 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001108/0.1516, allocations: 402.3 kB / 369.4 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.1516, allocations: 0 / 369.4 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007278/0.1523, allocations: 280 kB / 369.7 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005575/0.1529, allocations: 60.61 kB / 369.7 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1604/0.3133, allocations: 3.479 MB / 373.2 MB, free: 23.58 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002311/0.3136, allocations: 0.7748 MB / 374 MB, free: 22.87 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000205/0.3138, allocations: 42.55 kB / 374 MB, free: 22.86 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001667/0.314, allocations: 94.23 kB / 374.1 MB, free: 22.86 MB / 302.1 MB Notification: Performance of SimCode: time 8.11e-07/0.314, allocations: 4 kB / 374.1 MB, free: 22.86 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01946/0.3335, allocations: 6.293 MB / 380.4 MB, free: 21.95 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001444/0.3337, allocations: 184.6 kB / 380.6 MB, free: 21.71 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.981/2.314, allocations: 0 / 380.6 MB, free: 21.71 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Backlash_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Backlash.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat does not exist to compare? outputFormat=mat