Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Backlash,fileNamePrefix="Modelica_3_2_3_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.002149/0.002149, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.936/1.936, allocations: 205.3 MB / 214.4 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009583/0.0009583, allocations: 86.72 kB / 262.4 MB, free: 1.613 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.787e-05/2.79e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1304, allocations: 47.58 MB / 363.2 MB, free: 6.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3549/0.4854, allocations: 77.53 MB / 440.7 MB, free: 2.102 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002236/0.4857, allocations: 62.16 kB / 440.8 MB, free: 2.07 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02268/0.5084, allocations: 7.616 MB / 448.4 MB, free: 11.76 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.5085, allocations: 0 / 448.4 MB, free: 11.76 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.022e-05/0.5085, allocations: 4 kB / 448.4 MB, free: 11.76 MB / 330.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.001281/0.5098, allocations: 0.6315 MB / 449 MB, free: 11.1 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/0.5099, allocations: 12.03 kB / 449 MB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.632e-05/0.51, allocations: 31.62 kB / 449 MB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003403/0.5103, allocations: 250.3 kB / 449.3 MB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003619/0.5107, allocations: 127.9 kB / 449.4 MB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.649e-05/0.5107, allocations: 16 kB / 449.4 MB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000454/0.5112, allocations: 260.2 kB / 449.7 MB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004914/0.5117, allocations: 278.8 kB / 450 MB, free: 10.26 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.407e-05/0.5117, allocations: 3.906 kB / 450 MB, free: 10.26 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.29e-05/0.5118, allocations: 0 / 450 MB, free: 10.26 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.191e-05/0.5118, allocations: 8 kB / 450 MB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00143/0.5132, allocations: 0.9268 MB / 450.9 MB, free: 9.441 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005348/0.5138, allocations: 306.7 kB / 451.2 MB, free: 9.203 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002184/0.514, allocations: 146.8 kB / 451.3 MB, free: 9.102 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.898e-05/0.5141, allocations: 4 kB / 451.3 MB, free: 9.098 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.601e-05/0.5141, allocations: 46.12 kB / 451.4 MB, free: 9.047 MB / 330.7 MB Notification: Performance of pre-optimization done (n=32): time 1.392e-06/0.5141, allocations: 0 / 451.4 MB, free: 9.047 MB / 330.7 MB Notification: Performance of matching and sorting (n=38): time 0.00222/0.5163, allocations: 1.751 MB / 453.1 MB, free: 7.23 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.61e-05/0.5164, allocations: 106.8 kB / 453.2 MB, free: 7.102 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001608/0.5166, allocations: 162.6 kB / 453.4 MB, free: 6.953 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.986e-05/0.5166, allocations: 25.7 kB / 453.4 MB, free: 6.922 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.467e-05/0.5167, allocations: 153.5 kB / 453.6 MB, free: 6.793 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000113/0.5169, allocations: 132.5 kB / 453.7 MB, free: 6.676 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.255e-05/0.5169, allocations: 7.125 kB / 453.7 MB, free: 6.672 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.517, allocations: 334.6 kB / 454 MB, free: 6.344 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000181/0.5172, allocations: 119.7 kB / 454.2 MB, free: 6.277 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002201/0.5174, allocations: 167.4 kB / 454.3 MB, free: 6.145 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000204/0.5176, allocations: 109.9 kB / 454.4 MB, free: 6.078 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.5177, allocations: 0 / 454.4 MB, free: 6.078 MB / 330.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0005414/0.5182, allocations: 338 kB / 454.8 MB, free: 5.828 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.5182, allocations: 11.94 kB / 454.8 MB, free: 5.816 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.5182, allocations: 0 / 454.8 MB, free: 5.816 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/0.5183, allocations: 4 kB / 454.8 MB, free: 5.812 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007339/0.519, allocations: 171.4 kB / 454.9 MB, free: 5.648 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.519, allocations: 4 kB / 454.9 MB, free: 5.645 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002036/0.5192, allocations: 23.97 kB / 455 MB, free: 5.621 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.372e-05/0.5193, allocations: 15.56 kB / 455 MB, free: 5.609 MB / 330.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 () * 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.0001056/0.5194, allocations: 112.8 kB / 455.1 MB, free: 5.492 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005069/0.5199, allocations: 308.5 kB / 455.4 MB, free: 5.262 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.15e-05/0.52, allocations: 27.72 kB / 455.4 MB, free: 5.234 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.853e-05/0.5201, allocations: 22.66 kB / 455.4 MB, free: 5.223 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.5201, allocations: 4 kB / 455.4 MB, free: 5.219 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.5201, allocations: 3.984 kB / 455.5 MB, free: 5.215 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.5201, allocations: 4 kB / 455.5 MB, free: 5.211 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001471/0.5216, allocations: 1.129 MB / 456.6 MB, free: 4.188 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.5216, allocations: 4 kB / 456.6 MB, free: 4.184 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008714/0.5225, allocations: 203.4 kB / 456.8 MB, free: 3.988 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.61e-06/0.5225, allocations: 4 kB / 456.8 MB, free: 3.984 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.872e-05/0.5225, allocations: 8 kB / 456.8 MB, free: 3.977 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.339e-06/0.5225, allocations: 7.938 kB / 456.8 MB, free: 3.969 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.5225, allocations: 0 / 456.8 MB, free: 3.969 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008631/0.5234, allocations: 0.792 MB / 457.6 MB, free: 3.234 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001361/0.5236, allocations: 123.3 kB / 457.7 MB, free: 3.105 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.669e-05/0.5236, allocations: 7.984 kB / 457.7 MB, free: 3.098 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004107/0.524, allocations: 55.95 kB / 457.8 MB, free: 3.043 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000118/0.5242, allocations: 53.38 kB / 457.8 MB, free: 2.996 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.571e-05/0.5242, allocations: 11.94 kB / 457.8 MB, free: 2.988 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001087/0.5243, allocations: 132.3 kB / 458 MB, free: 2.875 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5243, allocations: 3.938 kB / 458 MB, free: 2.871 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004383/0.5248, allocations: 68 kB / 458 MB, free: 2.805 MB / 330.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 () * 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.001307/0.5261, allocations: 1.9 MB / 459.9 MB, free: 0.9766 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004191/0.5265, allocations: 237.6 kB / 460.2 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.167e-06/0.5265, allocations: 4.188 kB / 460.2 MB, free: 0.8086 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002429/0.5268, allocations: 167.4 kB / 460.3 MB, free: 0.6953 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005178/0.5273, allocations: 42.59 kB / 460.4 MB, free: 0.6641 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004755/0.532, allocations: 1.394 MB / 461.8 MB, free: 15.27 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003568/0.5324, allocations: 0.776 MB / 462.6 MB, free: 14.47 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001972/0.5326, allocations: 39.27 kB / 462.6 MB, free: 14.43 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001729/0.5328, allocations: 99.08 kB / 462.7 MB, free: 14.39 MB / 346.7 MB Notification: Performance of SimCode: time 5.91e-07/0.5328, allocations: 0 / 462.7 MB, free: 14.39 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02558/0.5584, allocations: 5.692 MB / 468.4 MB, free: 8.699 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002104/0.5587, allocations: 144.5 kB / 468.5 MB, free: 8.5 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.877/2.436, allocations: 0 / 468.5 MB, free: 8.5 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_Backlash_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_Backlash.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat does not exist to compare? outputFormat=mat