Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Backlash,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Backlash,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 176.4 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.455/1.455, allocations: 221.5 MB / 230.3 MB, free: 7.57 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008762/0.0008761, allocations: 81.75 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.476e-05/1.48e-05, allocations: 0 / 337.1 MB, free: 9.926 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.138/0.138, allocations: 50.42 MB / 387.6 MB, free: 7.461 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3598/0.4979, allocations: 78.18 MB / 465.7 MB, free: 0.5078 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002813/0.4983, allocations: 63.97 kB / 465.8 MB, free: 456 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03501/0.5333, allocations: 7.734 MB / 473.5 MB, free: 8.711 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.5334, allocations: 0 / 473.5 MB, free: 8.711 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.171e-05/0.5334, allocations: 4 kB / 473.5 MB, free: 8.707 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.001853/0.5353, allocations: 0.6358 MB / 474.2 MB, free: 8.027 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.357e-05/0.5353, allocations: 8.031 kB / 474.2 MB, free: 8.02 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001186/0.5355, allocations: 35.62 kB / 474.2 MB, free: 7.984 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004417/0.5359, allocations: 254.5 kB / 474.5 MB, free: 7.695 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005056/0.5364, allocations: 123.8 kB / 474.6 MB, free: 7.562 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.895e-05/0.5365, allocations: 16 kB / 474.6 MB, free: 7.547 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000796/0.5373, allocations: 265 kB / 474.9 MB, free: 7.289 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007555/0.5381, allocations: 279 kB / 475.1 MB, free: 7 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.902e-05/0.5382, allocations: 7.906 kB / 475.1 MB, free: 6.992 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.573e-05/0.5382, allocations: 0 / 475.1 MB, free: 6.992 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/0.5382, allocations: 4 kB / 475.1 MB, free: 6.988 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001843/0.5401, allocations: 0.921 MB / 476.1 MB, free: 6.023 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007747/0.5409, allocations: 295.8 kB / 476.4 MB, free: 5.707 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003745/0.5413, allocations: 146.6 kB / 476.5 MB, free: 5.555 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.683e-05/0.5413, allocations: 4 kB / 476.5 MB, free: 5.551 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.404e-05/0.5414, allocations: 46.62 kB / 476.5 MB, free: 5.496 MB / 346.7 MB Notification: Performance of pre-optimization done (n=32): time 2.364e-06/0.5414, allocations: 0 / 476.5 MB, free: 5.496 MB / 346.7 MB Notification: Performance of matching and sorting (n=38): time 0.003326/0.5447, allocations: 1.754 MB / 478.3 MB, free: 3.48 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.097e-05/0.5448, allocations: 114.8 kB / 478.4 MB, free: 3.344 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000237/0.545, allocations: 162.2 kB / 478.6 MB, free: 3.172 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.702e-05/0.5451, allocations: 25.7 kB / 478.6 MB, free: 3.141 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000109/0.5452, allocations: 140.9 kB / 478.7 MB, free: 2.996 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001673/0.5454, allocations: 146.6 kB / 478.9 MB, free: 2.852 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.522e-05/0.5455, allocations: 0 / 478.9 MB, free: 2.852 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.5456, allocations: 330.8 kB / 479.2 MB, free: 2.52 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003147/0.546, allocations: 116.9 kB / 479.3 MB, free: 2.406 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003975/0.5464, allocations: 168.6 kB / 479.5 MB, free: 2.223 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003399/0.5467, allocations: 115.5 kB / 479.6 MB, free: 2.113 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.5468, allocations: 0 / 479.6 MB, free: 2.113 MB / 346.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000982/0.5478, allocations: 342.8 kB / 479.9 MB, free: 1.773 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.59e-05/0.5478, allocations: 9.25 kB / 479.9 MB, free: 1.766 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.387e-06/0.5478, allocations: 0 / 479.9 MB, free: 1.766 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.209e-05/0.5479, allocations: 4 kB / 479.9 MB, free: 1.762 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001284/0.5491, allocations: 171.9 kB / 480.1 MB, free: 1.594 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.5492, allocations: 4 kB / 480.1 MB, free: 1.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003707/0.5496, allocations: 23.97 kB / 480.1 MB, free: 1.566 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.044e-05/0.5496, allocations: 16 kB / 480.2 MB, free: 1.551 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 () * 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.0001426/0.5498, allocations: 112.9 kB / 480.3 MB, free: 1.434 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009392/0.5507, allocations: 309.2 kB / 480.6 MB, free: 1.125 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001561/0.5509, allocations: 27.66 kB / 480.6 MB, free: 1.098 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001007/0.551, allocations: 25.97 kB / 480.6 MB, free: 1.078 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.023e-05/0.551, allocations: 7.984 kB / 480.6 MB, free: 1.07 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.149e-05/0.5511, allocations: 3.984 kB / 480.6 MB, free: 1.066 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.5511, allocations: 0 / 480.6 MB, free: 1.066 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002377/0.5535, allocations: 1.125 MB / 481.8 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.5535, allocations: 0 / 481.8 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001251/0.5548, allocations: 215.8 kB / 482 MB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.068e-05/0.5548, allocations: 7.938 kB / 482 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.248e-05/0.5548, allocations: 4 kB / 482 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.344e-06/0.5548, allocations: 4 kB / 482 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.091e-06/0.5549, allocations: 4 kB / 482 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00122/0.5561, allocations: 0.8065 MB / 482.8 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001809/0.5563, allocations: 128.8 kB / 482.9 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.986e-05/0.5564, allocations: 7.984 kB / 482.9 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006558/0.557, allocations: 55.95 kB / 483 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001332/0.5572, allocations: 43.89 kB / 483 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.021e-05/0.5572, allocations: 15.94 kB / 483 MB, free: 14.47 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001346/0.5574, allocations: 131.3 kB / 483.2 MB, free: 14.34 MB / 362.7 MB Notification: Performance of sort global known variables: time 2e-07/0.5574, allocations: 0 / 483.2 MB, free: 14.34 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007501/0.5581, allocations: 68 kB / 483.2 MB, free: 14.27 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 () * 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.002107/0.5603, allocations: 1.889 MB / 485.1 MB, free: 12.3 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007104/0.561, allocations: 237.2 kB / 485.4 MB, free: 12.07 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.561, allocations: 3.938 kB / 485.4 MB, free: 12.07 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004275/0.5614, allocations: 172.9 kB / 485.5 MB, free: 11.9 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007786/0.5622, allocations: 41.23 kB / 485.6 MB, free: 11.86 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007986/0.5702, allocations: 1.386 MB / 486.9 MB, free: 10.41 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005768/0.5708, allocations: 0.7799 MB / 487.7 MB, free: 9.605 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003256/0.5712, allocations: 39.28 kB / 487.8 MB, free: 9.57 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002834/0.5715, allocations: 95.39 kB / 487.9 MB, free: 9.477 MB / 362.7 MB Notification: Performance of SimCode: time 1.273e-06/0.5715, allocations: 4 kB / 487.9 MB, free: 9.473 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03085/0.6024, allocations: 5.693 MB / 493.6 MB, free: 3.828 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001917/0.6026, allocations: 142.4 kB / 493.7 MB, free: 3.629 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.289/2.891, allocations: 4 kB / 493.7 MB, free: 3.625 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Backlash_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Backlash.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat does not exist to compare? outputFormat=mat