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.001005/0.001005, allocations: 88.14 kB / 16.31 MB, free: 6.449 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.001256/0.001256, allocations: 180.7 kB / 17.21 MB, free: 6.32 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.412/1.412, allocations: 223.3 MB / 241.2 MB, free: 5.246 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002824/0.0002827, allocations: 7.516 kB / 300.9 MB, free: 5.582 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09803/0.09833, allocations: 50.43 MB / 351.3 MB, free: 11.28 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.00231/0.1007, allocations: 2.045 MB / 353.4 MB, free: 9.219 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001097/0.1018, allocations: 0.6942 MB / 354.1 MB, free: 8.523 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001198/0.102, allocations: 7.938 kB / 354.1 MB, free: 8.516 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001122/0.1021, allocations: 23.78 kB / 354.1 MB, free: 8.492 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000178/0.1023, allocations: 91.3 kB / 354.2 MB, free: 8.402 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003451/0.1026, allocations: 99.81 kB / 354.3 MB, free: 8.305 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003754/0.103, allocations: 414.3 kB / 354.7 MB, free: 7.898 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001642/0.1032, allocations: 73.72 kB / 354.8 MB, free: 7.824 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002709/0.1035, allocations: 159.5 kB / 354.9 MB, free: 7.668 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002062/0.1037, allocations: 179.4 kB / 355.1 MB, free: 7.492 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.524e-05/0.1037, allocations: 20 kB / 355.1 MB, free: 7.473 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.145e-05/0.1038, allocations: 20 kB / 355.1 MB, free: 7.453 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.142e-05/0.1039, allocations: 75.72 kB / 355.2 MB, free: 7.379 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.31e-05/0.1039, allocations: 73.58 kB / 355.3 MB, free: 7.301 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003497/0.1043, allocations: 291.2 kB / 355.6 MB, free: 7.016 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.1043, allocations: 0 / 355.6 MB, free: 7.016 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1043, allocations: 0 / 355.6 MB, free: 7.016 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.1043, allocations: 0 / 355.6 MB, free: 7.016 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001431/0.1058, allocations: 0.6783 MB / 356.3 MB, free: 6.289 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/0.1058, allocations: 12.03 kB / 356.3 MB, free: 6.277 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.736e-05/0.1059, allocations: 62.53 kB / 356.3 MB, free: 6.207 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.179e-05/0.106, allocations: 39.58 kB / 356.4 MB, free: 6.168 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003271/0.1063, allocations: 270.3 kB / 356.6 MB, free: 5.863 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003501/0.1067, allocations: 127.9 kB / 356.8 MB, free: 5.727 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.906e-05/0.1067, allocations: 28 kB / 356.8 MB, free: 5.699 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008805/0.1076, allocations: 408 kB / 357.2 MB, free: 5.289 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.265e-05/0.1077, allocations: 7.906 kB / 357.2 MB, free: 5.281 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.249e-05/0.1077, allocations: 11.95 kB / 357.2 MB, free: 5.27 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.769e-06/0.1077, allocations: 8 kB / 357.2 MB, free: 5.262 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001158/0.1089, allocations: 456.7 kB / 357.7 MB, free: 4.816 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001325/0.1102, allocations: 0.9748 MB / 358.6 MB, free: 3.781 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001057/0.1113, allocations: 459.6 kB / 359.1 MB, free: 3.305 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00058/0.1119, allocations: 246.4 kB / 359.3 MB, free: 3.055 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.927e-05/0.1119, allocations: 8 kB / 359.3 MB, free: 3.047 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.67e-05/0.1119, allocations: 38.5 kB / 359.4 MB, free: 3 MB / 286.1 MB Notification: Performance of pre-optimization done (n=32): time 1.703e-06/0.112, allocations: 4 kB / 359.4 MB, free: 2.996 MB / 286.1 MB Notification: Performance of matching and sorting (n=38): time 0.004575/0.1165, allocations: 2.503 MB / 361.9 MB, free: 236 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.899e-05/0.1166, allocations: 110.8 kB / 362 MB, free: 100 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002094/0.1168, allocations: 207.1 kB / 362.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.871e-05/0.1169, allocations: 30.64 kB / 362.2 MB, free: 15.85 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.477e-05/0.117, allocations: 144.7 kB / 362.4 MB, free: 15.7 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001134/0.1171, allocations: 141.9 kB / 362.5 MB, free: 15.56 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.269e-05/0.1171, allocations: 8 kB / 362.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.1172, allocations: 342.8 kB / 362.8 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002773/0.1175, allocations: 112.8 kB / 362.9 MB, free: 15.1 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000293/0.1178, allocations: 173.4 kB / 363.1 MB, free: 14.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002955/0.1181, allocations: 127.9 kB / 363.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.1181, allocations: 3.938 kB / 363.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007427/0.1189, allocations: 377.8 kB / 363.6 MB, free: 14.41 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.1189, allocations: 7.938 kB / 363.6 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.1189, allocations: 4 kB / 363.6 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.119, allocations: 4 kB / 363.6 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006454/0.1196, allocations: 171.8 kB / 363.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.1196, allocations: 4 kB / 363.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002022/0.1198, allocations: 27.97 kB / 363.8 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.296e-05/0.1199, allocations: 16 kB / 363.8 MB, free: 14.18 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.0001384/0.12, allocations: 149.7 kB / 364 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.663e-05/0.1201, allocations: 27.62 kB / 364 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.438e-05/0.1202, allocations: 33.52 kB / 364 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.1202, allocations: 8 kB / 364.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.1202, allocations: 0 / 364.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.1202, allocations: 0 / 364.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002219/0.1224, allocations: 1.412 MB / 365.5 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.1225, allocations: 4.188 kB / 365.5 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008069/0.1233, allocations: 203.8 kB / 365.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.392e-06/0.1233, allocations: 8 kB / 365.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.943e-05/0.1233, allocations: 15.98 kB / 365.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.1233, allocations: 4 kB / 365.7 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.1233, allocations: 0 / 365.7 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001921/0.1253, allocations: 1.042 MB / 366.7 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001319/0.1254, allocations: 136.8 kB / 366.9 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.715e-05/0.1255, allocations: 12 kB / 366.9 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003991/0.1259, allocations: 63.94 kB / 366.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.191e-05/0.126, allocations: 43.88 kB / 367 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-05/0.126, allocations: 12 kB / 367 MB, free: 10.86 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001348/0.1261, allocations: 152.6 kB / 367.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.1262, allocations: 0 / 367.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000454/0.1266, allocations: 84 kB / 367.2 MB, free: 10.63 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.002251/0.1289, allocations: 1.595 MB / 368.8 MB, free: 8.984 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000949/0.1298, allocations: 408.5 kB / 369.2 MB, free: 8.586 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1298, allocations: 0 / 369.2 MB, free: 8.586 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000666/0.1305, allocations: 280 kB / 369.5 MB, free: 8.312 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006842/0.1312, allocations: 63.03 kB / 369.6 MB, free: 8.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006463/0.1377, allocations: 2.738 MB / 372.3 MB, free: 5.422 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003423/0.138, allocations: 0.7762 MB / 373.1 MB, free: 4.617 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001799/0.1382, allocations: 42.95 kB / 373.1 MB, free: 4.574 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001956/0.1384, allocations: 99.41 kB / 373.2 MB, free: 4.477 MB / 302.1 MB Notification: Performance of SimCode: time 9.62e-07/0.1384, allocations: 0 / 373.2 MB, free: 4.477 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01788/0.1563, allocations: 6.319 MB / 379.5 MB, free: 14.32 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001715/0.1565, allocations: 198.4 kB / 379.7 MB, free: 14.06 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.972/2.128, allocations: 7.938 kB / 379.7 MB, free: 14.05 MB / 318.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