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.002332/0.002332, allocations: 181.4 kB / 13.66 MB, free: 1.664 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.327/2.327, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001172/0.001172, allocations: 78.7 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.731e-05/3.75e-05, allocations: 8 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09695/0.09704, allocations: 47.57 MB / 369.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4204/0.5175, allocations: 77.95 MB / 447.1 MB, free: 15.26 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002777/0.5178, allocations: 66.77 kB / 447.2 MB, free: 15.22 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03936/0.5572, allocations: 7.668 MB / 454.9 MB, free: 8.75 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.5572, allocations: 0 / 454.9 MB, free: 8.75 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.332e-05/0.5573, allocations: 4 kB / 454.9 MB, free: 8.746 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.002244/0.5595, allocations: 0.6224 MB / 455.5 MB, free: 8.098 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.117e-05/0.5596, allocations: 8.031 kB / 455.5 MB, free: 8.09 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000149/0.5598, allocations: 64.84 kB / 455.6 MB, free: 8.035 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001285/0.5599, allocations: 35.62 kB / 455.6 MB, free: 8 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005094/0.5604, allocations: 260.3 kB / 455.9 MB, free: 7.727 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006045/0.5611, allocations: 130.6 kB / 456 MB, free: 7.598 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.416e-05/0.5612, allocations: 31.16 kB / 456 MB, free: 7.574 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008518/0.562, allocations: 321.4 kB / 456.3 MB, free: 7.336 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.16e-05/0.5621, allocations: 0 / 456.3 MB, free: 7.336 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.47e-05/0.5622, allocations: 15.25 kB / 456.3 MB, free: 7.328 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.598e-05/0.5622, allocations: 8 kB / 456.4 MB, free: 7.32 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008523/0.563, allocations: 271 kB / 456.6 MB, free: 7.145 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002183/0.5652, allocations: 0.982 MB / 457.6 MB, free: 6.285 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009021/0.5662, allocations: 321.2 kB / 457.9 MB, free: 6.035 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004658/0.5667, allocations: 156.1 kB / 458.1 MB, free: 5.926 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.339e-05/0.5668, allocations: 11.12 kB / 458.1 MB, free: 5.918 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.231e-05/0.5668, allocations: 41.42 kB / 458.1 MB, free: 5.871 MB / 330.7 MB Notification: Performance of pre-optimization done (n=32): time 3.777e-06/0.5668, allocations: 0 / 458.1 MB, free: 5.871 MB / 330.7 MB Notification: Performance of matching and sorting (n=38): time 0.004073/0.5709, allocations: 1.853 MB / 460 MB, free: 3.867 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.711e-05/0.5711, allocations: 106.8 kB / 460.1 MB, free: 3.738 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002941/0.5714, allocations: 174.1 kB / 460.2 MB, free: 3.559 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.296e-05/0.5714, allocations: 37.8 kB / 460.3 MB, free: 3.516 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001425/0.5716, allocations: 203 kB / 460.5 MB, free: 3.316 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001791/0.5718, allocations: 142 kB / 460.6 MB, free: 3.176 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.69e-05/0.5718, allocations: 4 kB / 460.6 MB, free: 3.172 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001767/0.572, allocations: 338.8 kB / 461 MB, free: 2.832 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004048/0.5724, allocations: 116.9 kB / 461.1 MB, free: 2.719 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004705/0.5729, allocations: 181.4 kB / 461.2 MB, free: 2.52 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003936/0.5733, allocations: 126.1 kB / 461.4 MB, free: 2.398 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.5733, allocations: 0 / 461.4 MB, free: 2.398 MB / 330.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001094/0.5745, allocations: 361.2 kB / 461.7 MB, free: 2.039 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.709e-05/0.5745, allocations: 4 kB / 461.7 MB, free: 2.035 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.38e-05/0.5745, allocations: 4 kB / 461.7 MB, free: 2.031 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.916e-05/0.5746, allocations: 7.953 kB / 461.7 MB, free: 2.023 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001426/0.576, allocations: 167.9 kB / 461.9 MB, free: 1.859 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.948e-05/0.5761, allocations: 7.938 kB / 461.9 MB, free: 1.852 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004606/0.5765, allocations: 23.98 kB / 461.9 MB, free: 1.828 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.865e-05/0.5766, allocations: 15.98 kB / 461.9 MB, free: 1.812 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.000185/0.5768, allocations: 128.9 kB / 462.1 MB, free: 1.68 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001475/0.5769, allocations: 23.72 kB / 462.1 MB, free: 1.656 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001159/0.5771, allocations: 33.64 kB / 462.1 MB, free: 1.621 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.01e-05/0.5771, allocations: 4 kB / 462.1 MB, free: 1.617 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.2e-05/0.5771, allocations: 7.953 kB / 462.1 MB, free: 1.609 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.5771, allocations: 0 / 462.1 MB, free: 1.609 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002782/0.5799, allocations: 1.206 MB / 463.3 MB, free: 316 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.005e-05/0.58, allocations: 4 kB / 463.3 MB, free: 312 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001824/0.5818, allocations: 211.8 kB / 463.6 MB, free: 100 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.616e-05/0.5819, allocations: 4 kB / 463.6 MB, free: 96 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.753e-05/0.582, allocations: 12 kB / 463.6 MB, free: 84 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.528e-06/0.582, allocations: 4 kB / 463.6 MB, free: 80 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.582, allocations: 0 / 463.6 MB, free: 80 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001755/0.5838, allocations: 0.8267 MB / 464.4 MB, free: 15.16 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000279/0.5841, allocations: 132.7 kB / 464.5 MB, free: 15.02 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.411e-05/0.5842, allocations: 11.95 kB / 464.5 MB, free: 15 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008026/0.585, allocations: 63.95 kB / 464.6 MB, free: 14.94 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001666/0.5852, allocations: 44 kB / 464.6 MB, free: 14.9 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.806e-05/0.5853, allocations: 16.08 kB / 464.7 MB, free: 14.88 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00022/0.5855, allocations: 151.2 kB / 464.8 MB, free: 14.73 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5855, allocations: 0 / 464.8 MB, free: 14.73 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006638/0.5862, allocations: 84 kB / 464.9 MB, free: 14.65 MB / 346.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.002317/0.5885, allocations: 1.93 MB / 466.8 MB, free: 12.65 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008425/0.5894, allocations: 259.8 kB / 467.1 MB, free: 12.39 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.5894, allocations: 0 / 467.1 MB, free: 12.39 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005249/0.59, allocations: 172.2 kB / 467.2 MB, free: 12.23 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008718/0.5909, allocations: 65.55 kB / 467.3 MB, free: 12.16 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009443/0.6003, allocations: 1.454 MB / 468.8 MB, free: 10.64 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005057/0.6009, allocations: 0.7763 MB / 469.5 MB, free: 9.836 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000363/0.6013, allocations: 91.41 kB / 469.6 MB, free: 9.746 MB / 346.7 MB Notification: Performance of SimCode: time 1.052e-06/0.6013, allocations: 0 / 469.6 MB, free: 9.746 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.615/3.216, allocations: 4.979 MB / 474.6 MB, free: 4.766 MB / 346.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