Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Backlash.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Backlash,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Backlash,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002375/0.002375, allocations: 189.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.17/2.17, allocations: 205.4 MB / 222.5 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001155/0.001155, allocations: 98.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003752/0.0003753, allocations: 8 kB / 327.1 MB, free: 15.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1022, allocations: 47.58 MB / 374.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.003497/0.1058, allocations: 1.922 MB / 376.6 MB, free: 13.41 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002051/0.1079, allocations: 0.7537 MB / 377.3 MB, free: 12.65 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002301/0.1082, allocations: 4 kB / 377.3 MB, free: 12.65 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 8.785e-05/0.1083, allocations: 27.77 kB / 377.3 MB, free: 12.62 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00042/0.1087, allocations: 115.7 kB / 377.5 MB, free: 12.51 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004954/0.1092, allocations: 103.8 kB / 377.6 MB, free: 12.41 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005582/0.1098, allocations: 291.5 kB / 377.8 MB, free: 12.12 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002221/0.11, allocations: 73.05 kB / 377.9 MB, free: 12.05 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003056/0.1104, allocations: 155.5 kB / 378.1 MB, free: 11.9 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003191/0.1107, allocations: 183.4 kB / 378.2 MB, free: 11.72 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.547e-05/0.1108, allocations: 23.94 kB / 378.3 MB, free: 11.7 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.749e-05/0.1109, allocations: 20 kB / 378.3 MB, free: 11.68 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.763e-05/0.111, allocations: 75.78 kB / 378.4 MB, free: 11.6 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001058/0.1111, allocations: 81.52 kB / 378.4 MB, free: 11.52 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004302/0.1116, allocations: 283.5 kB / 378.7 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.1116, allocations: 0 / 378.7 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1116, allocations: 0 / 378.7 MB, free: 11.24 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.1116, allocations: 0 / 378.7 MB, free: 11.24 MB / 282.7 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.002547/0.1142, allocations: 0.6705 MB / 379.4 MB, free: 10.52 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.539e-05/0.1142, allocations: 8.031 kB / 379.4 MB, free: 10.51 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001255/0.1144, allocations: 62.53 kB / 379.5 MB, free: 10.44 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001142/0.1145, allocations: 39.56 kB / 379.5 MB, free: 10.4 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004942/0.115, allocations: 270.4 kB / 379.8 MB, free: 10.1 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00062/0.1156, allocations: 131.9 kB / 379.9 MB, free: 9.957 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001084/0.1158, allocations: 31.91 kB / 379.9 MB, free: 9.926 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001696/0.1175, allocations: 407.9 kB / 380.3 MB, free: 9.512 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.25e-05/0.1175, allocations: 4 kB / 380.3 MB, free: 9.508 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.169e-05/0.1176, allocations: 8 kB / 380.3 MB, free: 9.5 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.403e-05/0.1176, allocations: 8 kB / 380.3 MB, free: 9.492 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002402/0.12, allocations: 452.8 kB / 380.8 MB, free: 9.051 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002217/0.1223, allocations: 0.9859 MB / 381.8 MB, free: 8.004 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002037/0.1244, allocations: 459.5 kB / 382.2 MB, free: 7.527 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.623e-05/0.1245, allocations: 7.922 kB / 382.2 MB, free: 7.52 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.558e-05/0.1245, allocations: 42.56 kB / 382.3 MB, free: 7.469 MB / 282.7 MB Notification: Performance of pre-optimization done (n=32): time 4.499e-06/0.1246, allocations: 0 / 382.3 MB, free: 7.469 MB / 282.7 MB Notification: Performance of matching and sorting (n=38): time 0.009128/0.1337, allocations: 2.512 MB / 384.8 MB, free: 4.691 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.98e-05/0.1338, allocations: 110.8 kB / 384.9 MB, free: 4.559 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003302/0.1342, allocations: 203.2 kB / 385.1 MB, free: 4.348 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.761e-05/0.1343, allocations: 33.7 kB / 385.1 MB, free: 4.309 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001449/0.1344, allocations: 203 kB / 385.3 MB, free: 4.109 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001767/0.1346, allocations: 137.9 kB / 385.4 MB, free: 3.973 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.278e-05/0.1347, allocations: 12 kB / 385.5 MB, free: 3.961 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.1348, allocations: 330.8 kB / 385.8 MB, free: 3.629 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005669/0.1354, allocations: 112.8 kB / 385.9 MB, free: 3.52 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006111/0.1361, allocations: 165.5 kB / 386.1 MB, free: 3.336 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006283/0.1367, allocations: 128.8 kB / 386.2 MB, free: 3.211 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.1367, allocations: 0 / 386.2 MB, free: 3.211 MB / 282.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001463/0.1382, allocations: 366.9 kB / 386.5 MB, free: 2.848 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.738e-05/0.1382, allocations: 9.031 kB / 386.5 MB, free: 2.84 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/0.1383, allocations: 7.953 kB / 386.6 MB, free: 2.832 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.406e-05/0.1383, allocations: 7.938 kB / 386.6 MB, free: 2.824 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001369/0.1397, allocations: 167.8 kB / 386.7 MB, free: 2.66 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.568e-05/0.1397, allocations: 3.984 kB / 386.7 MB, free: 2.656 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004388/0.1402, allocations: 27.98 kB / 386.8 MB, free: 2.629 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.655e-05/0.1402, allocations: 16 kB / 386.8 MB, free: 2.613 MB / 282.7 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.0002528/0.1405, allocations: 141.8 kB / 386.9 MB, free: 2.465 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001569/0.1407, allocations: 23.72 kB / 386.9 MB, free: 2.441 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001/0.1408, allocations: 41.52 kB / 387 MB, free: 2.398 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-05/0.1408, allocations: 11.89 kB / 387 MB, free: 2.387 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.999e-06/0.1408, allocations: 0 / 387 MB, free: 2.387 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.086e-05/0.1408, allocations: 3.984 kB / 387 MB, free: 2.383 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004275/0.1451, allocations: 1.394 MB / 388.4 MB, free: 0.8945 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.598e-05/0.1452, allocations: 4 kB / 388.4 MB, free: 0.8906 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001783/0.147, allocations: 204 kB / 388.6 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.89e-05/0.147, allocations: 4 kB / 388.6 MB, free: 0.6875 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.301e-05/0.1471, allocations: 19.98 kB / 388.6 MB, free: 0.668 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.008e-05/0.1472, allocations: 8 kB / 388.6 MB, free: 0.6602 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.736e-06/0.1472, allocations: 7.891 kB / 388.6 MB, free: 0.6523 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2677/0.4149, allocations: 1.132 MB / 389.8 MB, free: 20.49 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002427/0.4152, allocations: 137 kB / 389.9 MB, free: 20.4 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.748e-05/0.4152, allocations: 12.23 kB / 389.9 MB, free: 20.4 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007519/0.416, allocations: 64.94 kB / 390 MB, free: 20.4 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001672/0.4162, allocations: 40.44 kB / 390 MB, free: 20.4 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.591e-05/0.4162, allocations: 14.64 kB / 390 MB, free: 20.4 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001902/0.4164, allocations: 145.9 kB / 390.2 MB, free: 20.32 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4165, allocations: 0.75 kB / 390.2 MB, free: 20.32 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006839/0.4172, allocations: 82.06 kB / 390.2 MB, free: 20.32 MB / 282.7 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.004188/0.4214, allocations: 2.233 MB / 392.5 MB, free: 18.81 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001889/0.4233, allocations: 408.1 kB / 392.9 MB, free: 18.81 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/0.4233, allocations: 0 / 392.9 MB, free: 18.81 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001353/0.4247, allocations: 276 kB / 393.1 MB, free: 18.8 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008264/0.4256, allocations: 56.56 kB / 393.2 MB, free: 18.8 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0128/0.4384, allocations: 3.518 MB / 396.7 MB, free: 16.88 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003212/0.4387, allocations: 0.7745 MB / 397.5 MB, free: 16.17 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003474/0.4391, allocations: 96.47 kB / 397.6 MB, free: 16.11 MB / 282.7 MB Notification: Performance of SimCode: time 1.413e-06/0.4391, allocations: 192 / 397.6 MB, free: 16.11 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.514/2.953, allocations: 4.951 MB / 402.5 MB, free: 15.09 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Backlash.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Backlash.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_Backlash_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_Backlash.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Backlash.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat does not exist to compare? outputFormat=mat