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.001262/0.001262, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001283/0.001283, allocations: 210.4 kB / 18.58 MB, free: 4.578 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.494/1.494, allocations: 227.7 MB / 247 MB, free: 10.36 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.001983/0.001983, allocations: 68.67 kB / 307.3 MB, free: 424 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1187, allocations: 50.54 MB / 357.9 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.003168/0.1219, allocations: 1.507 MB / 359.4 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001001/0.123, allocations: 0.5352 MB / 359.9 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.231e-05/0.123, allocations: 4 kB / 359.9 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001149/0.1232, allocations: 23.86 kB / 359.9 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.592e-05/0.1232, allocations: 7.922 kB / 359.9 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000151/0.1234, allocations: 35.91 kB / 360 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.821e-05/0.1235, allocations: 59.8 kB / 360 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001176/0.1236, allocations: 27.94 kB / 360.1 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001606/0.1238, allocations: 27.92 kB / 360.1 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.111e-05/0.1239, allocations: 31.84 kB / 360.1 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.632e-05/0.1239, allocations: 8 kB / 360.1 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.165e-05/0.124, allocations: 23.94 kB / 360.1 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.598e-05/0.124, allocations: 11.98 kB / 360.2 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.997e-05/0.124, allocations: 31.84 kB / 360.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001357/0.1242, allocations: 63.78 kB / 360.3 MB, free: 11.45 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.1242, allocations: 0 / 360.3 MB, free: 11.45 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1242, allocations: 0 / 360.3 MB, free: 11.45 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.007e-06/0.1242, allocations: 4 kB / 360.3 MB, free: 11.45 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006963/0.1249, allocations: 383.6 kB / 360.6 MB, free: 11.03 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.125, allocations: 12.03 kB / 360.6 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.024e-05/0.125, allocations: 34.75 kB / 360.7 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.253e-05/0.1251, allocations: 8.844 kB / 360.7 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001672/0.1253, allocations: 180.2 kB / 360.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.611e-05/0.1253, allocations: 384 / 360.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.416e-05/0.1253, allocations: 4.375 kB / 360.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002971/0.1256, allocations: 85.77 kB / 361 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.1256, allocations: 4 kB / 361 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.231e-05/0.1256, allocations: 4 kB / 361 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.1256, allocations: 0 / 361 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003377/0.126, allocations: 83.8 kB / 361 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004722/0.1265, allocations: 304.8 kB / 361.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002703/0.1268, allocations: 82.5 kB / 361.4 MB, free: 10.13 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001729/0.1269, allocations: 40.95 kB / 361.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.009e-05/0.127, allocations: 0 / 361.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.277e-05/0.127, allocations: 38.56 kB / 361.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 1.042e-06/0.127, allocations: 0 / 361.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0006091/0.1276, allocations: 149.5 kB / 361.6 MB, free: 9.887 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.388e-05/0.1277, allocations: 51.41 kB / 361.7 MB, free: 9.824 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.964e-05/0.1278, allocations: 117.8 kB / 361.8 MB, free: 9.699 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.196e-05/0.1278, allocations: 29.7 kB / 361.8 MB, free: 9.664 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.755e-05/0.1279, allocations: 99.97 kB / 361.9 MB, free: 9.562 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.5e-05/0.1279, allocations: 7.812 kB / 361.9 MB, free: 9.555 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.335e-05/0.128, allocations: 21.7 kB / 362 MB, free: 9.527 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.1281, allocations: 318.8 kB / 362.3 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001642/0.1283, allocations: 39.95 kB / 362.3 MB, free: 9.168 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001487/0.1285, allocations: 35.97 kB / 362.3 MB, free: 9.133 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000308/0.1288, allocations: 80.78 kB / 362.4 MB, free: 9.051 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1288, allocations: 0 / 362.4 MB, free: 9.051 MB / 302.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003846/0.1292, allocations: 114.1 kB / 362.5 MB, free: 8.934 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.1292, allocations: 7.938 kB / 362.5 MB, free: 8.926 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.1292, allocations: 0 / 362.5 MB, free: 8.926 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.1292, allocations: 0 / 362.5 MB, free: 8.926 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000141/0.1294, allocations: 19.97 kB / 362.6 MB, free: 8.906 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.1294, allocations: 8 kB / 362.6 MB, free: 8.898 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.614e-05/0.1295, allocations: 15.83 kB / 362.6 MB, free: 8.883 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.179e-05/0.1295, allocations: 11.94 kB / 362.6 MB, free: 8.871 MB / 302.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.966e-05/0.1296, allocations: 109.8 kB / 362.7 MB, free: 8.754 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.777e-05/0.1297, allocations: 4 kB / 362.7 MB, free: 8.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004201/0.1301, allocations: 133.5 kB / 362.8 MB, free: 8.609 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.1301, allocations: 7.922 kB / 362.9 MB, free: 8.602 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.1301, allocations: 4.375 kB / 362.9 MB, free: 8.598 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.287e-06/0.1301, allocations: 0 / 362.9 MB, free: 8.598 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002651/0.1304, allocations: 189.6 kB / 363 MB, free: 8.363 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1304, allocations: 0 / 363 MB, free: 8.363 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001158/0.1305, allocations: 23.92 kB / 363.1 MB, free: 8.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.1305, allocations: 0 / 363.1 MB, free: 8.34 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.042e-05/0.1306, allocations: 7.938 kB / 363.1 MB, free: 8.332 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.1306, allocations: 0 / 363.1 MB, free: 8.332 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.1306, allocations: 0 / 363.1 MB, free: 8.332 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004258/0.131, allocations: 227.3 kB / 363.3 MB, free: 8.094 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.945e-05/0.1311, allocations: 81.02 kB / 363.4 MB, free: 7.996 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.976e-05/0.1311, allocations: 4 kB / 363.4 MB, free: 7.992 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001155/0.1312, allocations: 15.97 kB / 363.4 MB, free: 7.977 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.615e-05/0.1313, allocations: 7.938 kB / 363.4 MB, free: 7.969 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.488e-06/0.1313, allocations: 4 kB / 363.4 MB, free: 7.965 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.936e-05/0.1313, allocations: 95.2 kB / 363.5 MB, free: 7.871 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1313, allocations: 0 / 363.5 MB, free: 7.871 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002228/0.1316, allocations: 12 kB / 363.5 MB, free: 7.859 MB / 302.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.0008045/0.1324, allocations: 0.7555 MB / 364.3 MB, free: 7.078 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000392/0.1328, allocations: 91.84 kB / 364.4 MB, free: 6.988 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/0.1328, allocations: 4 kB / 364.4 MB, free: 6.984 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001751/0.133, allocations: 47.95 kB / 364.4 MB, free: 6.938 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003488/0.1333, allocations: 8 kB / 364.4 MB, free: 6.93 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005465/0.1339, allocations: 199.5 kB / 364.6 MB, free: 6.695 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003698/0.1343, allocations: 0.6885 MB / 365.3 MB, free: 5.98 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.305e-05/0.1343, allocations: 0 / 365.3 MB, free: 5.98 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.82e-05/0.1344, allocations: 23.42 kB / 365.3 MB, free: 5.957 MB / 302.1 MB Notification: Performance of SimCode: time 1.9e-07/0.1344, allocations: 0 / 365.3 MB, free: 5.957 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02462/0.159, allocations: 1.99 MB / 367.3 MB, free: 4.062 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.351/8.51, allocations: 11.16 kB / 367.3 MB, free: 4.055 MB / 302.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)