Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Backlash,fileNamePrefix="Modelica_4_1_0-beta_om_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.001386/0.001387, allocations: 118.2 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001452/0.001452, allocations: 206 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.467/1.467, allocations: 227.7 MB / 247.2 MB, free: 10.16 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002158/0.002159, allocations: 71.88 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2908/0.2929, allocations: 50.54 MB / 409.1 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.003815/0.2968, allocations: 2.458 MB / 411.5 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001474/0.2983, allocations: 0.7674 MB / 412.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001397/0.2985, allocations: 7.938 kB / 412.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001695/0.2987, allocations: 35.59 kB / 412.3 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002135/0.2989, allocations: 111.1 kB / 412.4 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003491/0.2993, allocations: 119.8 kB / 412.6 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004725/0.2997, allocations: 470.2 kB / 413 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002012/0.3, allocations: 88.81 kB / 413.1 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002372/0.3002, allocations: 183.4 kB / 413.3 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002581/0.3005, allocations: 215.2 kB / 413.5 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.092e-05/0.3005, allocations: 36 kB / 413.5 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.555e-05/0.3006, allocations: 36 kB / 413.6 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.699e-05/0.3007, allocations: 87.72 kB / 413.6 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001916/0.3009, allocations: 179.3 kB / 413.8 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004643/0.3014, allocations: 413.4 kB / 414.2 MB, free: 12.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3014, allocations: 0 / 414.2 MB, free: 12.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.3014, allocations: 0 / 414.2 MB, free: 12.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.3014, allocations: 0 / 414.2 MB, free: 12.16 MB / 334.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.001592/0.303, allocations: 0.6859 MB / 414.9 MB, free: 11.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.93e-05/0.3031, allocations: 8.031 kB / 414.9 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.563e-05/0.3032, allocations: 66.72 kB / 415 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.625e-05/0.3032, allocations: 36.75 kB / 415 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004517/0.3037, allocations: 272.7 kB / 415.3 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001163/0.3038, allocations: 96.08 kB / 415.4 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.626e-05/0.3039, allocations: 24 kB / 415.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009375/0.3048, allocations: 379.2 kB / 415.8 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.239e-05/0.3049, allocations: 11.98 kB / 415.8 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.44e-05/0.3049, allocations: 8 kB / 415.8 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.3049, allocations: 8 kB / 415.8 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001224/0.3062, allocations: 396.6 kB / 416.2 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001389/0.3076, allocations: 0.9662 MB / 417.2 MB, free: 9.055 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001124/0.3087, allocations: 399.6 kB / 417.5 MB, free: 8.637 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006329/0.3094, allocations: 218.4 kB / 417.8 MB, free: 8.414 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.972e-05/0.3094, allocations: 15.92 kB / 417.8 MB, free: 8.398 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.123e-05/0.3094, allocations: 38.5 kB / 417.8 MB, free: 8.352 MB / 334.1 MB Notification: Performance of pre-optimization done (n=32): time 1.954e-06/0.3095, allocations: 0 / 417.8 MB, free: 8.352 MB / 334.1 MB Notification: Performance of matching and sorting (n=38): time 0.005165/0.3146, allocations: 2.322 MB / 420.1 MB, free: 5.766 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.666e-05/0.3147, allocations: 106.8 kB / 420.2 MB, free: 5.637 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002418/0.315, allocations: 207.2 kB / 420.4 MB, free: 5.426 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.982e-05/0.315, allocations: 33.7 kB / 420.5 MB, free: 5.387 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001222/0.3152, allocations: 152.7 kB / 420.6 MB, free: 5.234 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001331/0.3153, allocations: 142.7 kB / 420.8 MB, free: 5.094 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001424/0.3154, allocations: 78.06 kB / 420.8 MB, free: 5.012 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.3156, allocations: 338.8 kB / 421.2 MB, free: 4.672 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003321/0.316, allocations: 108.8 kB / 421.3 MB, free: 4.562 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000354/0.3163, allocations: 165.4 kB / 421.4 MB, free: 4.387 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006845/0.317, allocations: 294.9 kB / 421.7 MB, free: 4.086 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.317, allocations: 0 / 421.7 MB, free: 4.086 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008469/0.3179, allocations: 365.2 kB / 422.1 MB, free: 3.723 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.767e-05/0.3179, allocations: 7.938 kB / 422.1 MB, free: 3.715 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.3179, allocations: 8.094 kB / 422.1 MB, free: 3.707 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.318, allocations: 0 / 422.1 MB, free: 3.707 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006998/0.3187, allocations: 147.8 kB / 422.2 MB, free: 3.562 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.2e-05/0.3187, allocations: 4 kB / 422.2 MB, free: 3.559 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002322/0.3189, allocations: 27.97 kB / 422.3 MB, free: 3.531 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.201e-05/0.319, allocations: 16.94 kB / 422.3 MB, free: 3.516 MB / 334.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001796/0.3191, allocations: 149.7 kB / 422.4 MB, free: 3.359 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.907e-05/0.3192, allocations: 31.75 kB / 422.5 MB, free: 3.328 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.519e-05/0.3193, allocations: 37.52 kB / 422.5 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.736e-06/0.3193, allocations: 7.984 kB / 422.5 MB, free: 3.285 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.695e-06/0.3194, allocations: 0 / 422.5 MB, free: 3.285 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.3194, allocations: 0 / 422.5 MB, free: 3.285 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002499/0.3219, allocations: 1.323 MB / 423.8 MB, free: 1.867 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.292e-06/0.3219, allocations: 4 kB / 423.8 MB, free: 1.863 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008565/0.3228, allocations: 172 kB / 424 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.791e-06/0.3228, allocations: 0 / 424 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.932e-05/0.3228, allocations: 19.92 kB / 424 MB, free: 1.676 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.697e-06/0.3228, allocations: 8 kB / 424 MB, free: 1.668 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.3228, allocations: 0 / 424 MB, free: 1.668 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002245/0.3251, allocations: 0.9556 MB / 425 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001691/0.3253, allocations: 128.9 kB / 425.1 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.443e-05/0.3253, allocations: 15.94 kB / 425.1 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004185/0.3258, allocations: 51.94 kB / 425.2 MB, free: 472 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001122/0.3259, allocations: 39.89 kB / 425.2 MB, free: 432 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.167e-05/0.3259, allocations: 12 kB / 425.2 MB, free: 420 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001527/0.3261, allocations: 156.5 kB / 425.4 MB, free: 264 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3261, allocations: 0 / 425.4 MB, free: 264 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004642/0.3266, allocations: 84 kB / 425.5 MB, free: 180 kB / 334.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002482/0.329, allocations: 1.49 MB / 427 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001097/0.3302, allocations: 372.2 kB / 427.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.3302, allocations: 0 / 427.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006979/0.3309, allocations: 248 kB / 427.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007684/0.3317, allocations: 79.91 kB / 427.6 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008675/0.3404, allocations: 3.872 MB / 431.5 MB, free: 9.926 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004458/0.3408, allocations: 0.7682 MB / 432.3 MB, free: 9.129 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001921/0.341, allocations: 34.97 kB / 432.3 MB, free: 9.094 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002011/0.3413, allocations: 99.39 kB / 432.4 MB, free: 8.996 MB / 350.1 MB Notification: Performance of SimCode: time 1.072e-06/0.3413, allocations: 0 / 432.4 MB, free: 8.996 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03219/0.3735, allocations: 7.123 MB / 439.5 MB, free: 2.008 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.328/8.701, allocations: 34.45 kB / 439.6 MB, free: 1.98 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Backlash.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Backlash.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Backlash_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_Backlash.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Backlash.pipe 2>&1)