Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Backlash,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Backlash,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001046/0.001046, allocations: 202.1 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 225.6 MB / 234.8 MB, free: 3.273 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008248/0.0008248, allocations: 95.78 kB / 286.7 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.282e-05/2.279e-05, allocations: 4 kB / 343.8 MB, free: 8.223 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09845/0.09849, allocations: 51.49 MB / 395.3 MB, free: 4.695 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3615/0.46, allocations: 78.99 MB / 474.3 MB, free: 12.96 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002162/0.4603, allocations: 72.08 kB / 474.3 MB, free: 12.93 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02145/0.4818, allocations: 7.785 MB / 482.1 MB, free: 7.684 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4818, allocations: 0 / 482.1 MB, free: 7.684 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.496e-05/0.4819, allocations: 8 kB / 482.1 MB, free: 7.676 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.001269/0.4832, allocations: 0.6286 MB / 482.8 MB, free: 7.023 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.4832, allocations: 11.41 kB / 482.8 MB, free: 7.016 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001074/0.4833, allocations: 39.61 kB / 482.8 MB, free: 6.977 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003389/0.4837, allocations: 246.8 kB / 483 MB, free: 6.719 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003273/0.484, allocations: 127.5 kB / 483.2 MB, free: 6.586 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.827e-05/0.4841, allocations: 23.67 kB / 483.2 MB, free: 6.566 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004516/0.4845, allocations: 246.7 kB / 483.4 MB, free: 6.41 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004308/0.485, allocations: 291.1 kB / 483.7 MB, free: 6.184 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.512e-05/0.485, allocations: 3.906 kB / 483.7 MB, free: 6.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.575e-05/0.4851, allocations: 4 kB / 483.7 MB, free: 6.176 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.595e-06/0.4851, allocations: 4 kB / 483.7 MB, free: 6.172 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001103/0.4862, allocations: 0.9026 MB / 484.6 MB, free: 5.398 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004018/0.4866, allocations: 311.9 kB / 484.9 MB, free: 5.16 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001983/0.4868, allocations: 151.2 kB / 485.1 MB, free: 5.055 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.303e-05/0.4868, allocations: 0 / 485.1 MB, free: 5.055 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.93e-05/0.4869, allocations: 38 kB / 485.1 MB, free: 5.012 MB / 346.7 MB Notification: Performance of pre-optimization done (n=32): time 1.382e-06/0.4869, allocations: 4 kB / 485.1 MB, free: 5.008 MB / 346.7 MB Notification: Performance of matching and sorting (n=38): time 0.001908/0.4888, allocations: 1.759 MB / 486.9 MB, free: 3.188 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.616e-05/0.4888, allocations: 106.8 kB / 487 MB, free: 3.059 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001203/0.489, allocations: 150.3 kB / 487.1 MB, free: 2.918 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.703e-05/0.489, allocations: 25.7 kB / 487.2 MB, free: 2.887 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.692e-05/0.4891, allocations: 150.2 kB / 487.3 MB, free: 2.754 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.405e-05/0.4892, allocations: 134.5 kB / 487.4 MB, free: 2.637 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.442e-05/0.4892, allocations: 3.375 kB / 487.4 MB, free: 2.637 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.188e-05/0.4893, allocations: 345 kB / 487.8 MB, free: 2.301 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001789/0.4895, allocations: 109.4 kB / 487.9 MB, free: 2.238 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001966/0.4897, allocations: 168.2 kB / 488 MB, free: 2.109 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000181/0.4898, allocations: 124 kB / 488.2 MB, free: 2.031 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.4899, allocations: 0 / 488.2 MB, free: 2.031 MB / 346.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000482/0.4903, allocations: 337.4 kB / 488.5 MB, free: 1.781 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.4904, allocations: 4 kB / 488.5 MB, free: 1.777 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.4904, allocations: 8.906 kB / 488.5 MB, free: 1.773 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.771e-05/0.4904, allocations: 0 / 488.5 MB, free: 1.773 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006903/0.4911, allocations: 175.7 kB / 488.7 MB, free: 1.605 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.275e-06/0.4911, allocations: 4 kB / 488.7 MB, free: 1.602 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002136/0.4913, allocations: 19.98 kB / 488.7 MB, free: 1.582 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.912e-05/0.4914, allocations: 15.25 kB / 488.7 MB, free: 1.57 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 7.833e-05/0.4914, allocations: 116.9 kB / 488.8 MB, free: 1.449 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004546/0.4919, allocations: 304.2 kB / 489.1 MB, free: 1.227 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.991e-05/0.492, allocations: 23.72 kB / 489.2 MB, free: 1.203 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.23e-05/0.4921, allocations: 26.39 kB / 489.2 MB, free: 1.191 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.4921, allocations: 4 kB / 489.2 MB, free: 1.188 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.4921, allocations: 4 kB / 489.2 MB, free: 1.184 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.4921, allocations: 3.984 kB / 489.2 MB, free: 1.18 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001199/0.4933, allocations: 1.141 MB / 490.3 MB, free: 164 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.4933, allocations: 3.938 kB / 490.3 MB, free: 160 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008686/0.4942, allocations: 204 kB / 490.5 MB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.017e-06/0.4942, allocations: 4 kB / 490.5 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.283e-05/0.4943, allocations: 10.92 kB / 490.6 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.895e-06/0.4943, allocations: 7.938 kB / 490.6 MB, free: 15.94 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.4943, allocations: 4 kB / 490.6 MB, free: 15.93 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000862/0.4951, allocations: 0.8034 MB / 491.4 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001336/0.4953, allocations: 124.5 kB / 491.5 MB, free: 15.06 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.68e-05/0.4953, allocations: 4 kB / 491.5 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004319/0.4958, allocations: 59.94 kB / 491.5 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.908e-05/0.4959, allocations: 39.72 kB / 491.6 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.827e-05/0.4959, allocations: 23.05 kB / 491.6 MB, free: 14.95 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.563e-05/0.496, allocations: 120.8 kB / 491.7 MB, free: 14.84 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.496, allocations: 0 / 491.7 MB, free: 14.84 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004648/0.4965, allocations: 72 kB / 491.8 MB, free: 14.77 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.001497/0.498, allocations: 1.895 MB / 493.7 MB, free: 12.95 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000474/0.4985, allocations: 242 kB / 493.9 MB, free: 12.78 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.209e-06/0.4985, allocations: 0 / 493.9 MB, free: 12.78 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002606/0.4988, allocations: 158.1 kB / 494.1 MB, free: 12.68 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005549/0.4994, allocations: 60.72 kB / 494.1 MB, free: 12.63 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005043/0.5044, allocations: 1.387 MB / 495.5 MB, free: 11.25 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003155/0.5048, allocations: 0.776 MB / 496.3 MB, free: 10.45 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002186/0.505, allocations: 39.28 kB / 496.3 MB, free: 10.42 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001908/0.5052, allocations: 95.95 kB / 496.4 MB, free: 10.38 MB / 362.7 MB Notification: Performance of SimCode: time 8.52e-07/0.5052, allocations: 3.938 kB / 496.4 MB, free: 10.38 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03164/0.5368, allocations: 5.682 MB / 0.4904 GB, free: 4.777 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002082/0.5371, allocations: 133.5 kB / 0.4905 GB, free: 4.59 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.195/2.732, allocations: 4 kB / 0.4905 GB, free: 4.586 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Backlash_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Backlash.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat does not exist to compare? outputFormat=mat