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.001629/0.001633, allocations: 186.3 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.95/1.95, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001141/0.001141, allocations: 95.22 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003841/0.0003841, allocations: 12 kB / 327.1 MB, free: 116 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3259/0.3263, allocations: 47.57 MB / 374.6 MB, free: 45.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1263/0.4527, allocations: 78.05 MB / 452.7 MB, free: 2.707 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002692/0.453, allocations: 63.95 kB / 452.7 MB, free: 2.645 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03799/0.491, allocations: 7.668 MB / 460.4 MB, free: 10.97 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.255e-06/0.4911, allocations: 0 / 460.4 MB, free: 10.97 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.158e-05/0.4911, allocations: 4 kB / 460.4 MB, free: 10.96 MB / 346.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.002321/0.4934, allocations: 0.655 MB / 461.1 MB, free: 10.26 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.873e-05/0.4935, allocations: 8.031 kB / 461.1 MB, free: 10.25 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001327/0.4937, allocations: 70.47 kB / 461.1 MB, free: 10.18 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001057/0.4938, allocations: 31.72 kB / 461.2 MB, free: 10.14 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004701/0.4943, allocations: 260.7 kB / 461.4 MB, free: 9.852 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006208/0.4949, allocations: 135.9 kB / 461.6 MB, free: 9.707 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001113/0.495, allocations: 31.97 kB / 461.6 MB, free: 9.676 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001714/0.4968, allocations: 415.9 kB / 462 MB, free: 9.254 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.271e-05/0.4968, allocations: 3.906 kB / 462 MB, free: 9.25 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.291e-05/0.4969, allocations: 12 kB / 462 MB, free: 9.238 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.108e-05/0.4969, allocations: 4 kB / 462 MB, free: 9.234 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002443/0.4994, allocations: 460.7 kB / 462.5 MB, free: 8.785 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002239/0.5017, allocations: 0.9843 MB / 463.5 MB, free: 7.742 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002079/0.5038, allocations: 451.5 kB / 463.9 MB, free: 7.273 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.913e-05/0.5039, allocations: 11.97 kB / 463.9 MB, free: 7.262 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.674e-05/0.5039, allocations: 38.56 kB / 463.9 MB, free: 7.215 MB / 346.7 MB Notification: Performance of pre-optimization done (n=32): time 3.036e-06/0.504, allocations: 0 / 463.9 MB, free: 7.215 MB / 346.7 MB Notification: Performance of matching and sorting (n=38): time 0.00917/0.5132, allocations: 2.511 MB / 466.5 MB, free: 4.445 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.788e-05/0.5133, allocations: 110.8 kB / 466.6 MB, free: 4.312 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002857/0.5136, allocations: 178.3 kB / 466.7 MB, free: 4.129 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.574e-05/0.5137, allocations: 33.8 kB / 466.8 MB, free: 4.09 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001316/0.5138, allocations: 215 kB / 467 MB, free: 3.879 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001555/0.514, allocations: 130.1 kB / 467.1 MB, free: 3.75 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.573e-05/0.514, allocations: 8 kB / 467.1 MB, free: 3.742 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.5142, allocations: 326.8 kB / 467.4 MB, free: 3.414 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005591/0.5147, allocations: 108.8 kB / 467.5 MB, free: 3.309 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005999/0.5154, allocations: 173.4 kB / 467.7 MB, free: 3.117 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006146/0.516, allocations: 138.7 kB / 467.8 MB, free: 2.984 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.516, allocations: 0 / 467.8 MB, free: 2.984 MB / 346.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.00142/0.5174, allocations: 357.3 kB / 468.2 MB, free: 2.629 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.214e-05/0.5175, allocations: 13.09 kB / 468.2 MB, free: 2.617 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.292e-05/0.5175, allocations: 4 kB / 468.2 MB, free: 2.613 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.309e-05/0.5176, allocations: 4 kB / 468.2 MB, free: 2.609 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001373/0.5189, allocations: 171.8 kB / 468.4 MB, free: 2.441 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.331e-05/0.519, allocations: 0 / 468.4 MB, free: 2.441 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004509/0.5194, allocations: 27.98 kB / 468.4 MB, free: 2.414 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.741e-05/0.5195, allocations: 16 kB / 468.4 MB, free: 2.398 MB / 346.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.000251/0.5198, allocations: 145.8 kB / 468.6 MB, free: 2.246 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001352/0.5199, allocations: 27.62 kB / 468.6 MB, free: 2.219 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001193/0.52, allocations: 41.47 kB / 468.6 MB, free: 2.18 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.958e-06/0.5201, allocations: 4 kB / 468.6 MB, free: 2.176 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.438e-05/0.5201, allocations: 7.938 kB / 468.6 MB, free: 2.168 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.5201, allocations: 0 / 468.6 MB, free: 2.168 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004183/0.5243, allocations: 1.388 MB / 470 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.394e-05/0.5243, allocations: 4 kB / 470 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001755/0.5261, allocations: 208 kB / 470.2 MB, free: 492 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.574e-05/0.5262, allocations: 4 kB / 470.2 MB, free: 488 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.75e-05/0.5262, allocations: 8 kB / 470.3 MB, free: 480 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.355e-05/0.5263, allocations: 8 kB / 470.3 MB, free: 472 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.803e-06/0.5263, allocations: 3.938 kB / 470.3 MB, free: 468 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004029/0.5303, allocations: 1.149 MB / 471.4 MB, free: 15.22 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002647/0.5306, allocations: 132.8 kB / 471.5 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.159e-05/0.5307, allocations: 15.95 kB / 471.6 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007652/0.5315, allocations: 63.94 kB / 471.6 MB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001544/0.5317, allocations: 31.95 kB / 471.7 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.382e-05/0.5317, allocations: 20.08 kB / 471.7 MB, free: 14.94 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000201/0.5319, allocations: 152.6 kB / 471.8 MB, free: 14.79 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.532, allocations: 0 / 471.8 MB, free: 14.79 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006521/0.5326, allocations: 84 kB / 471.9 MB, free: 14.71 MB / 362.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.004598/0.5373, allocations: 2.236 MB / 474.1 MB, free: 12.39 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001916/0.5392, allocations: 406 kB / 474.5 MB, free: 12 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.91e-06/0.5393, allocations: 0 / 474.5 MB, free: 12 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001391/0.5407, allocations: 284.5 kB / 474.8 MB, free: 11.72 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008538/0.5416, allocations: 63.19 kB / 474.9 MB, free: 11.66 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01333/0.5549, allocations: 3.521 MB / 478.4 MB, free: 8.047 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004329/0.5554, allocations: 0.7763 MB / 479.2 MB, free: 7.246 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003684/0.5558, allocations: 103.4 kB / 479.3 MB, free: 7.145 MB / 362.7 MB Notification: Performance of SimCode: time 1.182e-06/0.5558, allocations: 0 / 479.3 MB, free: 7.145 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.653/3.209, allocations: 4.947 MB / 484.2 MB, free: 2.203 MB / 362.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