Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.TestConversionBlock.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.ComplexBlocks.Examples.TestConversionBlock,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_ComplexBlocks_Examples_TestConversionBlock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.ComplexBlocks.Examples.TestConversionBlock,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_ComplexBlocks_Examples_TestConversionBlock",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001933/0.001933, allocations: 113.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001495/0.001496, allocations: 207.8 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.464/1.464, 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.001963/0.001963, allocations: 67.88 kB / 358.5 MB, free: 13.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2934/0.2954, allocations: 50.54 MB / 409 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.002691/0.2981, allocations: 1.529 MB / 410.6 MB, free: 15.87 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009522/0.2991, allocations: 0.5258 MB / 411.1 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.316e-05/0.2992, allocations: 0 / 411.1 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001159/0.2993, allocations: 23.91 kB / 411.1 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.632e-05/0.2994, allocations: 11.88 kB / 411.1 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001628/0.2995, allocations: 35.91 kB / 411.2 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001102/0.2997, allocations: 63.78 kB / 411.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000108/0.2998, allocations: 19.97 kB / 411.2 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000161/0.2999, allocations: 27.92 kB / 411.3 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.707e-05/0.3, allocations: 27.91 kB / 411.3 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.621e-05/0.3001, allocations: 7.938 kB / 411.3 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.73e-05/0.3001, allocations: 16 kB / 411.3 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.145e-05/0.3001, allocations: 15.97 kB / 411.3 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.595e-05/0.3002, allocations: 31.81 kB / 411.4 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001632/0.3004, allocations: 70.73 kB / 411.4 MB, free: 15 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3004, allocations: 0 / 411.4 MB, free: 15 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3004, allocations: 4 kB / 411.4 MB, free: 14.99 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.026e-05/0.3004, allocations: 0 / 411.4 MB, free: 14.99 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006723/0.3011, allocations: 383.1 kB / 411.8 MB, free: 14.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.3011, allocations: 16.02 kB / 411.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.19e-05/0.3012, allocations: 34.75 kB / 411.9 MB, free: 14.51 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.85e-05/0.3012, allocations: 12.89 kB / 411.9 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001353/0.3014, allocations: 168.3 kB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.45e-05/0.3014, allocations: 384 / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.473e-05/0.3014, allocations: 4.375 kB / 412 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002888/0.3017, allocations: 85.77 kB / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.425e-06/0.3017, allocations: 3.938 kB / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.561e-05/0.3017, allocations: 4 kB / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.241e-06/0.3017, allocations: 4 kB / 412.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000337/0.3021, allocations: 83.84 kB / 412.2 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004345/0.3025, allocations: 304.7 kB / 412.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002716/0.3028, allocations: 82.56 kB / 412.6 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001711/0.303, allocations: 44.94 kB / 412.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.794e-05/0.303, allocations: 0 / 412.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.495e-05/0.3031, allocations: 34.56 kB / 412.7 MB, free: 13.58 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.262e-06/0.3031, allocations: 0 / 412.7 MB, free: 13.58 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0006243/0.3037, allocations: 157.5 kB / 412.8 MB, free: 13.42 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.998e-05/0.3038, allocations: 51.41 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.889e-05/0.3039, allocations: 113.8 kB / 413 MB, free: 13.23 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.054e-05/0.3039, allocations: 29.7 kB / 413 MB, free: 13.2 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.543e-05/0.3039, allocations: 92.47 kB / 413.1 MB, free: 13.11 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.738e-05/0.304, allocations: 19.81 kB / 413.1 MB, free: 13.09 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.278e-05/0.304, allocations: 21.72 kB / 413.1 MB, free: 13.06 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.3042, allocations: 322.8 kB / 413.5 MB, free: 12.73 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001633/0.3044, allocations: 39.91 kB / 413.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000155/0.3045, allocations: 35.95 kB / 413.5 MB, free: 12.66 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003241/0.3048, allocations: 89.16 kB / 413.6 MB, free: 12.57 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.3049, allocations: 0 / 413.6 MB, free: 12.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003689/0.3052, allocations: 113.6 kB / 413.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.3053, allocations: 7.938 kB / 413.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.3053, allocations: 0 / 413.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.3053, allocations: 0 / 413.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001393/0.3054, allocations: 19.98 kB / 413.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.3054, allocations: 7.984 kB / 413.8 MB, free: 12.42 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.247e-05/0.3055, allocations: 7.984 kB / 413.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.289e-05/0.3056, allocations: 7.938 kB / 413.8 MB, free: 12.4 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (5): * Single equations (assignments): 5 * 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 9.469e-05/0.3057, allocations: 109.8 kB / 413.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.725e-05/0.3057, allocations: 4 kB / 413.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004328/0.3061, allocations: 137.5 kB / 414 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-06/0.3061, allocations: 3.938 kB / 414 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.3062, allocations: 0 / 414 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.746e-06/0.3062, allocations: 3.938 kB / 414 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002142/0.3064, allocations: 185.6 kB / 414.2 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.3064, allocations: 0 / 414.2 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001232/0.3065, allocations: 23.97 kB / 414.2 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.3065, allocations: 4 kB / 414.2 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.3065, allocations: 4 kB / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.3066, allocations: 0 / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3066, allocations: 0 / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004407/0.307, allocations: 223.3 kB / 414.5 MB, free: 11.63 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.686e-05/0.3071, allocations: 81.11 kB / 414.5 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.551e-05/0.3071, allocations: 0 / 414.5 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001157/0.3072, allocations: 15.98 kB / 414.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.566e-05/0.3073, allocations: 11.92 kB / 414.6 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.4e-06/0.3073, allocations: 0 / 414.6 MB, free: 11.5 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.711e-05/0.3074, allocations: 95.2 kB / 414.7 MB, free: 11.41 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3074, allocations: 0 / 414.7 MB, free: 11.41 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002376/0.3076, allocations: 16.28 kB / 414.7 MB, free: 11.39 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (7): * Single equations (assignments): 7 * 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.0007714/0.3084, allocations: 0.7552 MB / 415.4 MB, free: 10.61 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004004/0.3088, allocations: 91.91 kB / 415.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3088, allocations: 0 / 415.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001758/0.309, allocations: 47.95 kB / 415.6 MB, free: 10.48 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003316/0.3093, allocations: 12.12 kB / 415.6 MB, free: 10.46 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005188/0.3099, allocations: 196 kB / 415.8 MB, free: 10.23 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003058/0.3102, allocations: 0.6846 MB / 416.5 MB, free: 9.523 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.831e-05/0.3102, allocations: 7.984 kB / 416.5 MB, free: 9.516 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.554e-05/0.3103, allocations: 19.44 kB / 416.5 MB, free: 9.496 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3103, allocations: 0 / 416.5 MB, free: 9.496 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02397/0.3343, allocations: 2.023 MB / 418.5 MB, free: 7.586 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.321/8.655, allocations: 4 kB / 418.5 MB, free: 7.582 MB / 334.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.TestConversionBlock.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_ComplexBlocks_Examples_TestConversionBlock.fmu > Modelica_4.1.0-beta.om_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe 2>&1)