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.002139/0.002139, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.198/2.198, allocations: 205.3 MB / 214.1 MB, free: 14.16 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001098/0.001098, allocations: 90.38 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.093e-05/2.093e-05, allocations: 0 / 314.9 MB, free: 9.07 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3361/0.3361, allocations: 47.56 MB / 362.4 MB, free: 45.74 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1303/0.4665, allocations: 77.3 MB / 439.7 MB, free: 8.93 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002685/0.4668, allocations: 63.97 kB / 439.8 MB, free: 8.867 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.0376/0.5044, allocations: 7.613 MB / 447.4 MB, free: 1.305 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.5045, allocations: 4 kB / 447.4 MB, free: 1.301 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.235e-05/0.5045, allocations: 4 kB / 447.4 MB, free: 1.297 MB / 331.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.002144/0.5067, allocations: 0.6257 MB / 448 MB, free: 0.6289 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.191e-05/0.5067, allocations: 12.03 kB / 448 MB, free: 0.6172 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001482/0.5069, allocations: 39.62 kB / 448.1 MB, free: 0.5781 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004913/0.5074, allocations: 255 kB / 448.3 MB, free: 300 kB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005881/0.508, allocations: 127.8 kB / 448.5 MB, free: 160 kB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.283e-05/0.5081, allocations: 16 kB / 448.5 MB, free: 144 kB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008403/0.509, allocations: 257 kB / 448.7 MB, free: 15.89 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007627/0.5098, allocations: 275 kB / 449 MB, free: 15.61 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.021e-05/0.5098, allocations: 11.91 kB / 449 MB, free: 15.59 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.489e-05/0.5099, allocations: 0 / 449 MB, free: 15.59 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.448e-05/0.5099, allocations: 8 kB / 449 MB, free: 15.59 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002012/0.5119, allocations: 0.9147 MB / 449.9 MB, free: 14.63 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007867/0.5127, allocations: 303.9 kB / 450.2 MB, free: 14.3 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003937/0.5131, allocations: 152.7 kB / 450.4 MB, free: 14.15 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.729e-05/0.5132, allocations: 7.984 kB / 450.4 MB, free: 14.14 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.387e-05/0.5132, allocations: 42.5 kB / 450.4 MB, free: 14.09 MB / 347.1 MB Notification: Performance of pre-optimization done (n=32): time 3.497e-06/0.5133, allocations: 0 / 450.4 MB, free: 14.09 MB / 347.1 MB Notification: Performance of matching and sorting (n=38): time 0.003596/0.5169, allocations: 1.745 MB / 452.2 MB, free: 12.09 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.392e-05/0.517, allocations: 114.8 kB / 452.3 MB, free: 11.95 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002324/0.5172, allocations: 164.5 kB / 452.4 MB, free: 11.79 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 5.21e-05/0.5173, allocations: 25.7 kB / 452.5 MB, free: 11.75 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001256/0.5174, allocations: 203.4 kB / 452.7 MB, free: 11.55 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001888/0.5176, allocations: 138 kB / 452.8 MB, free: 11.42 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.219e-05/0.5177, allocations: 0 / 452.8 MB, free: 11.42 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.5178, allocations: 326.8 kB / 453.1 MB, free: 11.09 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000355/0.5182, allocations: 116.9 kB / 453.2 MB, free: 10.98 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004063/0.5186, allocations: 172.6 kB / 453.4 MB, free: 10.79 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003321/0.519, allocations: 112.6 kB / 453.5 MB, free: 10.68 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.519, allocations: 0 / 453.5 MB, free: 10.68 MB / 347.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009322/0.5199, allocations: 329.3 kB / 453.8 MB, free: 10.35 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.467e-05/0.52, allocations: 8.094 kB / 453.8 MB, free: 10.34 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.52, allocations: 4 kB / 453.8 MB, free: 10.34 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.38e-05/0.52, allocations: 0 / 453.8 MB, free: 10.34 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001363/0.5214, allocations: 167.8 kB / 454 MB, free: 10.18 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.143e-05/0.5214, allocations: 4 kB / 454 MB, free: 10.17 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004351/0.5219, allocations: 23.98 kB / 454 MB, free: 10.15 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.427e-05/0.5219, allocations: 12 kB / 454.1 MB, free: 10.14 MB / 347.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 () * 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.0001511/0.5221, allocations: 116.8 kB / 454.2 MB, free: 10.02 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009325/0.523, allocations: 312 kB / 454.5 MB, free: 9.707 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001267/0.5232, allocations: 27.72 kB / 454.5 MB, free: 9.68 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.778e-05/0.5233, allocations: 29.89 kB / 454.5 MB, free: 9.648 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.438e-06/0.5233, allocations: 4 kB / 454.5 MB, free: 9.645 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.738e-06/0.5233, allocations: 4 kB / 454.5 MB, free: 9.641 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.5234, allocations: 0 / 454.5 MB, free: 9.641 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002456/0.5258, allocations: 1.124 MB / 455.7 MB, free: 8.438 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.5259, allocations: 3.984 kB / 455.7 MB, free: 8.434 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00175/0.5276, allocations: 211.9 kB / 455.9 MB, free: 8.227 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.581e-05/0.5277, allocations: 4 kB / 455.9 MB, free: 8.223 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.997e-05/0.5277, allocations: 8 kB / 455.9 MB, free: 8.215 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.618e-06/0.5278, allocations: 7.984 kB / 455.9 MB, free: 8.207 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.776e-06/0.5278, allocations: 8 kB / 455.9 MB, free: 8.199 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001423/0.5292, allocations: 0.7971 MB / 456.7 MB, free: 7.316 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000236/0.5295, allocations: 132.8 kB / 456.8 MB, free: 7.168 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.891e-05/0.5296, allocations: 0 / 456.8 MB, free: 7.168 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008308/0.5304, allocations: 55.95 kB / 456.9 MB, free: 7.113 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001605/0.5306, allocations: 43.83 kB / 456.9 MB, free: 7.07 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.953e-05/0.5307, allocations: 19.98 kB / 456.9 MB, free: 7.051 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.000153/0.5308, allocations: 127 kB / 457.1 MB, free: 6.926 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5308, allocations: 4 kB / 457.1 MB, free: 6.922 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0006806/0.5315, allocations: 68 kB / 457.1 MB, free: 6.855 MB / 347.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 () * 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.001943/0.5335, allocations: 1.894 MB / 459 MB, free: 4.887 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0007434/0.5343, allocations: 237.1 kB / 459.3 MB, free: 4.656 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.5343, allocations: 0 / 459.3 MB, free: 4.656 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004696/0.5348, allocations: 167.6 kB / 459.4 MB, free: 4.496 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000818/0.5356, allocations: 51.77 kB / 459.5 MB, free: 4.449 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009196/0.5448, allocations: 1.422 MB / 460.9 MB, free: 2.957 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004415/0.5453, allocations: 0.7721 MB / 461.7 MB, free: 2.156 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003637/0.5457, allocations: 96.33 kB / 461.8 MB, free: 2.062 MB / 347.1 MB Notification: Performance of SimCode: time 1.042e-06/0.5457, allocations: 0 / 461.8 MB, free: 2.062 MB / 347.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.66/3.206, allocations: 4.875 MB / 466.6 MB, free: 13.21 MB / 363.1 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