Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.SignConvention.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.Translational.Examples.SignConvention,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_SignConvention",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.SignConvention,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_SignConvention",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001254/0.001254, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001292/0.001292, allocations: 200.6 kB / 18.74 MB, free: 4.332 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.412/1.412, allocations: 227.7 MB / 247.2 MB, free: 10.17 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.002876/0.002877, allocations: 67.89 kB / 358.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2967/0.2996, allocations: 50.54 MB / 409.1 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.SignConvention): time 0.003665/0.3033, allocations: 2.122 MB / 411.2 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003656/0.3037, allocations: 163.4 kB / 411.3 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001001/0.3038, allocations: 4 kB / 411.3 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001463/0.304, allocations: 27.72 kB / 411.4 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001028/0.3041, allocations: 47.56 kB / 411.4 MB, free: 15 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001735/0.3043, allocations: 43.94 kB / 411.5 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002418/0.3045, allocations: 179.2 kB / 411.6 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001764/0.3047, allocations: 62.27 kB / 411.7 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.822e-05/0.3048, allocations: 67.72 kB / 411.8 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001335/0.3049, allocations: 71.64 kB / 411.8 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.107e-05/0.305, allocations: 15.98 kB / 411.8 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.246e-05/0.305, allocations: 16 kB / 411.9 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.088e-05/0.3051, allocations: 35.84 kB / 411.9 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.211e-05/0.3052, allocations: 79.61 kB / 412 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002682/0.3054, allocations: 182.2 kB / 412.1 MB, free: 14.26 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.3054, allocations: 0 / 412.1 MB, free: 14.26 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3054, allocations: 0 / 412.1 MB, free: 14.26 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.3055, allocations: 0 / 412.1 MB, free: 14.26 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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0006834/0.3061, allocations: 466.7 kB / 412.6 MB, free: 13.76 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.3062, allocations: 12.03 kB / 412.6 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.26e-05/0.3063, allocations: 54.67 kB / 412.7 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.211e-05/0.3063, allocations: 20.8 kB / 412.7 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003063/0.3066, allocations: 212.1 kB / 412.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.24e-05/0.3067, allocations: 24.16 kB / 412.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.819e-05/0.3067, allocations: 20.33 kB / 412.9 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003029/0.307, allocations: 182.2 kB / 413.1 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.715e-05/0.307, allocations: 7.875 kB / 413.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.789e-05/0.3071, allocations: 4 kB / 413.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/0.3071, allocations: 8 kB / 413.1 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001851/0.3073, allocations: 111.9 kB / 413.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001324/0.3086, allocations: 0.947 MB / 414.2 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001553/0.3088, allocations: 107.8 kB / 414.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.166e-05/0.3088, allocations: 42.52 kB / 414.3 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.012e-05/0.3089, allocations: 0 / 414.3 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.29e-05/0.3089, allocations: 42.64 kB / 414.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 9.81e-07/0.3089, allocations: 0 / 414.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003032/0.3092, allocations: 129.5 kB / 414.5 MB, free: 11.64 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.631e-05/0.3093, allocations: 110.8 kB / 414.6 MB, free: 11.51 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001988/0.3095, allocations: 203.8 kB / 414.8 MB, free: 11.3 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.592e-05/0.3095, allocations: 25.7 kB / 414.8 MB, free: 11.27 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.821e-05/0.3096, allocations: 144 kB / 415 MB, free: 11.12 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.205e-05/0.3097, allocations: 51.62 kB / 415 MB, free: 11.07 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.544e-05/0.3098, allocations: 45.91 kB / 415.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.3099, allocations: 330.8 kB / 415.4 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.553e-05/0.31, allocations: 36.45 kB / 415.4 MB, free: 10.65 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001546/0.3102, allocations: 146.6 kB / 415.6 MB, free: 10.46 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002358/0.3104, allocations: 202 kB / 415.8 MB, free: 10.21 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.3104, allocations: 4 kB / 415.8 MB, free: 10.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003228/0.3107, allocations: 209.2 kB / 416 MB, free: 10 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.3108, allocations: 4 kB / 416 MB, free: 9.996 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.3108, allocations: 4.406 kB / 416 MB, free: 9.992 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.3108, allocations: 8 kB / 416 MB, free: 9.984 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001538/0.311, allocations: 55.91 kB / 416.1 MB, free: 9.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/0.311, allocations: 7.938 kB / 416.1 MB, free: 9.922 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001215/0.3111, allocations: 35.67 kB / 416.1 MB, free: 9.887 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.333e-05/0.3111, allocations: 12 kB / 416.1 MB, free: 9.875 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (28): * Single equations (assignments): 28 * 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.0001053/0.3112, allocations: 133.7 kB / 416.2 MB, free: 9.734 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.438e-05/0.3113, allocations: 15.91 kB / 416.3 MB, free: 9.719 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.961e-05/0.3114, allocations: 24.92 kB / 416.3 MB, free: 9.688 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.3114, allocations: 0 / 416.3 MB, free: 9.688 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.3114, allocations: 4 kB / 416.3 MB, free: 9.684 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.3114, allocations: 7.938 kB / 416.3 MB, free: 9.676 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004299/0.3118, allocations: 237.6 kB / 416.5 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.3118, allocations: 0 / 416.5 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001435/0.312, allocations: 31.98 kB / 416.6 MB, free: 9.363 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.312, allocations: 4 kB / 416.6 MB, free: 9.359 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.503e-05/0.312, allocations: 0 / 416.6 MB, free: 9.359 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.988e-06/0.312, allocations: 7.938 kB / 416.6 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.312, allocations: 7.875 kB / 416.6 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003801/0.3124, allocations: 385.9 kB / 417 MB, free: 8.949 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.991e-05/0.3125, allocations: 97.02 kB / 417 MB, free: 8.836 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.424e-05/0.3125, allocations: 4 kB / 417 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001375/0.3127, allocations: 0 / 417 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.975e-05/0.3127, allocations: 15.92 kB / 417.1 MB, free: 8.816 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.424e-06/0.3127, allocations: 4 kB / 417.1 MB, free: 8.812 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001478/0.3129, allocations: 153.5 kB / 417.2 MB, free: 8.664 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3129, allocations: 0 / 417.2 MB, free: 8.664 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003589/0.3132, allocations: 39.95 kB / 417.3 MB, free: 8.625 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (mass1.s,mass1.v,mass2.s,mass2.v,mass3.s,mass3.v) * 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 (12): * Single equations (assignments): 12 * 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.000688/0.3139, allocations: 0.9172 MB / 418.2 MB, free: 7.68 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002099/0.3142, allocations: 112.2 kB / 418.3 MB, free: 7.57 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3142, allocations: 0 / 418.3 MB, free: 7.57 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.944e-05/0.3142, allocations: 36.2 kB / 418.3 MB, free: 7.535 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005055/0.3147, allocations: 36 kB / 418.4 MB, free: 7.5 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002919/0.3177, allocations: 2.625 MB / 421 MB, free: 4.695 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003823/0.3181, allocations: 0.7164 MB / 421.7 MB, free: 3.953 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.877e-05/0.3182, allocations: 29.92 kB / 421.7 MB, free: 3.926 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.27e-05/0.3182, allocations: 47.42 kB / 421.8 MB, free: 3.879 MB / 334.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3182, allocations: 0 / 421.8 MB, free: 3.879 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02601/0.3443, allocations: 3.476 MB / 425.2 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.979/8.324, allocations: 18.62 kB / 425.3 MB, free: 0.5352 MB / 334.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.SignConvention.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.SignConvention.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.SignConvention.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.SignConvention.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.SignConvention_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_Translational_Examples_SignConvention.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.SignConvention.pipe 2>&1)