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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0009566/0.0009565, allocations: 94.75 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000931/0.000931, allocations: 205.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 227.3 MB / 245.9 MB, free: 12.05 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002049/0.0002052, allocations: 4 kB / 306.7 MB, free: 1.523 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1017, allocations: 51.49 MB / 358.2 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.002276/0.104, allocations: 1.931 MB / 360.1 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001147/0.1052, allocations: 0.7528 MB / 360.9 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.747e-05/0.1053, allocations: 4 kB / 360.9 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.201e-05/0.1054, allocations: 27.78 kB / 360.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002285/0.1056, allocations: 123.6 kB / 361 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002679/0.1059, allocations: 103.8 kB / 361.1 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003226/0.1062, allocations: 295.3 kB / 361.4 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001367/0.1063, allocations: 65.09 kB / 361.5 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001829/0.1065, allocations: 159.5 kB / 361.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00021/0.1068, allocations: 183.4 kB / 361.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.704e-05/0.1068, allocations: 20 kB / 361.8 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.817e-05/0.1069, allocations: 20 kB / 361.9 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.36e-05/0.1069, allocations: 63.8 kB / 361.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.844e-05/0.107, allocations: 85.52 kB / 362 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002757/0.1073, allocations: 291.5 kB / 362.3 MB, free: 9.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.1073, allocations: 0 / 362.3 MB, free: 9.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.255e-06/0.1073, allocations: 0 / 362.3 MB, free: 9.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.1073, allocations: 0 / 362.3 MB, free: 9.91 MB / 302.1 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.001383/0.1087, allocations: 0.6635 MB / 362.9 MB, free: 9.199 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.1088, allocations: 8.031 kB / 363 MB, free: 9.191 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.164e-05/0.1089, allocations: 74.41 kB / 363 MB, free: 9.109 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.015e-05/0.1089, allocations: 35.62 kB / 363.1 MB, free: 9.074 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003012/0.1092, allocations: 270.3 kB / 363.3 MB, free: 8.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003472/0.1096, allocations: 131.9 kB / 363.5 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.488e-05/0.1097, allocations: 28 kB / 363.5 MB, free: 8.602 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008699/0.1105, allocations: 407.9 kB / 363.9 MB, free: 8.188 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.421e-05/0.1106, allocations: 7.906 kB / 363.9 MB, free: 8.18 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.371e-05/0.1106, allocations: 12 kB / 363.9 MB, free: 8.168 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.062e-05/0.1107, allocations: 8 kB / 363.9 MB, free: 8.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001187/0.1118, allocations: 463.7 kB / 364.4 MB, free: 7.711 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001326/0.1132, allocations: 0.9745 MB / 365.3 MB, free: 6.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001086/0.1143, allocations: 447.6 kB / 365.8 MB, free: 6.215 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.648e-05/0.1143, allocations: 7.938 kB / 365.8 MB, free: 6.207 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.683e-05/0.1144, allocations: 35 kB / 365.8 MB, free: 6.164 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 1.343e-06/0.1144, allocations: 0 / 365.8 MB, free: 6.164 MB / 302.1 MB Notification: Performance of matching and sorting (n=38): time 0.005163/0.1195, allocations: 2.504 MB / 368.3 MB, free: 3.395 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.86e-05/0.1196, allocations: 122.7 kB / 368.4 MB, free: 3.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002265/0.1199, allocations: 200.1 kB / 368.6 MB, free: 3.043 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.872e-05/0.1199, allocations: 41.64 kB / 368.7 MB, free: 2.996 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/0.12, allocations: 144.6 kB / 368.8 MB, free: 2.852 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001236/0.1202, allocations: 137.9 kB / 369 MB, free: 2.715 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.906e-05/0.1202, allocations: 12 kB / 369 MB, free: 2.703 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.1204, allocations: 334.8 kB / 369.3 MB, free: 2.367 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003056/0.1207, allocations: 116.8 kB / 369.4 MB, free: 2.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003281/0.121, allocations: 165.5 kB / 369.6 MB, free: 2.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003083/0.1213, allocations: 130.1 kB / 369.7 MB, free: 1.949 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.1213, allocations: 4 kB / 369.7 MB, free: 1.945 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007486/0.1221, allocations: 375.2 kB / 370.1 MB, free: 1.574 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.1221, allocations: 7.938 kB / 370.1 MB, free: 1.566 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.1221, allocations: 4 kB / 370.1 MB, free: 1.562 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.1222, allocations: 8.094 kB / 370.1 MB, free: 1.555 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007191/0.1229, allocations: 163.8 kB / 370.2 MB, free: 1.395 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.351e-05/0.1229, allocations: 11.94 kB / 370.3 MB, free: 1.383 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002264/0.1231, allocations: 27.98 kB / 370.3 MB, free: 1.355 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.967e-05/0.1232, allocations: 16 kB / 370.3 MB, free: 1.34 MB / 302.1 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.0001575/0.1233, allocations: 145.7 kB / 370.4 MB, free: 1.188 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.856e-05/0.1234, allocations: 23.72 kB / 370.5 MB, free: 1.164 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.257e-05/0.1235, allocations: 33.52 kB / 370.5 MB, free: 1.133 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.1235, allocations: 8 kB / 370.5 MB, free: 1.125 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.908e-06/0.1235, allocations: 8 kB / 370.5 MB, free: 1.117 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.448e-06/0.1235, allocations: 7.938 kB / 370.5 MB, free: 1.109 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2293/0.3528, allocations: 1.384 MB / 371.9 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.777e-06/0.3529, allocations: 3.266 kB / 371.9 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009549/0.3538, allocations: 209.3 kB / 372.1 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.068e-05/0.3539, allocations: 4 kB / 372.1 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.489e-05/0.3539, allocations: 17.47 kB / 372.1 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.732e-06/0.3539, allocations: 4.359 kB / 372.1 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.3539, allocations: 5.406 kB / 372.1 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00227/0.3562, allocations: 1.144 MB / 373.3 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001705/0.3564, allocations: 124.2 kB / 373.4 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.215e-05/0.3564, allocations: 12.44 kB / 373.4 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004569/0.3569, allocations: 65.12 kB / 373.5 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/0.357, allocations: 38.78 kB / 373.5 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.223e-05/0.3571, allocations: 16.61 kB / 373.5 MB, free: 18.96 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00015/0.3572, allocations: 150.2 kB / 373.7 MB, free: 18.88 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3572, allocations: 0 / 373.7 MB, free: 18.88 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004717/0.3577, allocations: 81.28 kB / 373.8 MB, free: 18.88 MB / 302.1 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.002473/0.3602, allocations: 2.247 MB / 376 MB, free: 17.33 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001119/0.3613, allocations: 399.2 kB / 376.4 MB, free: 17.31 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3613, allocations: 0 / 376.4 MB, free: 17.31 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007633/0.3621, allocations: 282 kB / 376.7 MB, free: 17.29 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005229/0.3626, allocations: 63.34 kB / 376.7 MB, free: 17.29 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007142/0.3698, allocations: 3.491 MB / 380.2 MB, free: 15.51 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002861/0.3701, allocations: 0.7758 MB / 381 MB, free: 14.81 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000217/0.3703, allocations: 41.16 kB / 381 MB, free: 14.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001864/0.3705, allocations: 97.38 kB / 381.1 MB, free: 14.75 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3705, allocations: 0 / 381.1 MB, free: 14.75 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01899/0.3895, allocations: 6.302 MB / 387.4 MB, free: 13.33 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001803/0.3897, allocations: 181.6 kB / 387.6 MB, free: 13.09 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.804/2.194, allocations: 0 / 387.6 MB, free: 13.09 MB / 302.1 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