Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.ComplexBlocks.Examples.TestConversionBlock,fileNamePrefix="Modelica_4_0_0_Modelica_ComplexBlocks_Examples_TestConversionBlock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.ComplexBlocks.Examples.TestConversionBlock,fileNamePrefix="Modelica_4_0_0_Modelica_ComplexBlocks_Examples_TestConversionBlock",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007753/0.0007753, allocations: 88.66 kB / 16.31 MB, free: 6.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007891/0.0007892, allocations: 181.5 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 223.2 MB / 241.2 MB, free: 5.418 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002831/0.0002832, allocations: 5.812 kB / 300.9 MB, free: 6.059 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1172, allocations: 50.43 MB / 351.3 MB, free: 11.6 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.001868/0.1191, allocations: 1.205 MB / 352.5 MB, free: 10.39 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008795/0.12, allocations: 463.2 kB / 353 MB, free: 9.93 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.552e-05/0.12, allocations: 4 kB / 353 MB, free: 9.926 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.571e-05/0.1201, allocations: 15.92 kB / 353 MB, free: 9.91 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.264e-05/0.1202, allocations: 3.938 kB / 353 MB, free: 9.906 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001427/0.1204, allocations: 27.97 kB / 353 MB, free: 9.879 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001036/0.1205, allocations: 47.84 kB / 353.1 MB, free: 9.832 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001173/0.1206, allocations: 19.92 kB / 353.1 MB, free: 9.812 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001032/0.1207, allocations: 27.86 kB / 353.1 MB, free: 9.785 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.536e-05/0.1208, allocations: 27.91 kB / 353.2 MB, free: 9.758 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.471e-05/0.1208, allocations: 7.938 kB / 353.2 MB, free: 9.75 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.083e-05/0.1209, allocations: 15.98 kB / 353.2 MB, free: 9.734 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.8e-05/0.1209, allocations: 7.938 kB / 353.2 MB, free: 9.727 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.821e-05/0.1209, allocations: 29.7 kB / 353.2 MB, free: 9.691 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001099/0.121, allocations: 47.84 kB / 353.3 MB, free: 9.645 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.121, allocations: 0 / 353.3 MB, free: 9.645 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1211, allocations: 0 / 353.3 MB, free: 9.645 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.1211, allocations: 0 / 353.3 MB, free: 9.645 MB / 286.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.0006277/0.1217, allocations: 395.1 kB / 353.6 MB, free: 9.211 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.738e-05/0.1218, allocations: 8.031 kB / 353.7 MB, free: 9.203 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.837e-05/0.1218, allocations: 38.5 kB / 353.7 MB, free: 9.156 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.853e-05/0.1219, allocations: 4 kB / 353.7 MB, free: 9.152 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001318/0.122, allocations: 170.9 kB / 353.9 MB, free: 8.945 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.526e-05/0.122, allocations: 4 kB / 353.9 MB, free: 8.941 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.739e-06/0.122, allocations: 8 kB / 353.9 MB, free: 8.934 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002929/0.1223, allocations: 97.58 kB / 354 MB, free: 8.832 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.1224, allocations: 0 / 354 MB, free: 8.832 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.1224, allocations: 0 / 354 MB, free: 8.832 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.1e-05/0.1224, allocations: 7.938 kB / 354 MB, free: 8.824 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002964/0.1227, allocations: 107.9 kB / 354.1 MB, free: 8.719 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004708/0.1232, allocations: 300.8 kB / 354.4 MB, free: 8.375 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002383/0.1234, allocations: 86.48 kB / 354.5 MB, free: 8.281 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001622/0.1236, allocations: 56.94 kB / 354.5 MB, free: 8.223 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.064e-05/0.1236, allocations: 0 / 354.5 MB, free: 8.223 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.822e-05/0.1237, allocations: 38.56 kB / 354.6 MB, free: 8.176 MB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 1.173e-06/0.1237, allocations: 0 / 354.6 MB, free: 8.176 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.0005644/0.1242, allocations: 185.5 kB / 354.7 MB, free: 7.988 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.229e-05/0.1243, allocations: 55.41 kB / 354.8 MB, free: 7.922 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.371e-05/0.1244, allocations: 109.8 kB / 354.9 MB, free: 7.805 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.73e-05/0.1244, allocations: 33.7 kB / 354.9 MB, free: 7.766 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.436e-05/0.1245, allocations: 88.05 kB / 355 MB, free: 7.676 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.802e-05/0.1245, allocations: 23.73 kB / 355 MB, free: 7.652 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.929e-06/0.1245, allocations: 0 / 355 MB, free: 7.652 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.1246, allocations: 314.8 kB / 355.3 MB, free: 7.336 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001467/0.1248, allocations: 51.95 kB / 355.4 MB, free: 7.285 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001409/0.1249, allocations: 43.97 kB / 355.4 MB, free: 7.242 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001414/0.1251, allocations: 47.95 kB / 355.5 MB, free: 7.195 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.1251, allocations: 0 / 355.5 MB, free: 7.195 MB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003316/0.1254, allocations: 141.5 kB / 355.6 MB, free: 7.051 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/0.1255, allocations: 4 kB / 355.6 MB, free: 7.047 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.92e-06/0.1255, allocations: 448 / 355.6 MB, free: 7.047 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.054e-05/0.1255, allocations: 4 kB / 355.6 MB, free: 7.043 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001361/0.1256, allocations: 27.97 kB / 355.7 MB, free: 7.016 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.1257, allocations: 3.938 kB / 355.7 MB, free: 7.012 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.562e-05/0.1258, allocations: 23.89 kB / 355.7 MB, free: 6.988 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.085e-05/0.1258, allocations: 4 kB / 355.7 MB, free: 6.984 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.168e-05/0.1259, allocations: 109.8 kB / 355.8 MB, free: 6.867 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.817e-05/0.1259, allocations: 7.953 kB / 355.8 MB, free: 6.859 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003986/0.1263, allocations: 165.5 kB / 356 MB, free: 6.688 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.658e-06/0.1263, allocations: 4 kB / 356 MB, free: 6.684 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.1263, allocations: 0 / 356 MB, free: 6.684 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.1263, allocations: 0 / 356 MB, free: 6.684 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001979/0.1265, allocations: 185.5 kB / 356.2 MB, free: 6.453 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.1265, allocations: 4 kB / 356.2 MB, free: 6.449 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001141/0.1267, allocations: 27.97 kB / 356.2 MB, free: 6.422 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.1267, allocations: 3.953 kB / 356.2 MB, free: 6.418 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-06/0.1267, allocations: 0 / 356.2 MB, free: 6.418 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.1267, allocations: 4 kB / 356.2 MB, free: 6.414 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1267, allocations: 0 / 356.2 MB, free: 6.414 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000388/0.1271, allocations: 239.4 kB / 356.4 MB, free: 6.164 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.439e-05/0.1272, allocations: 92.95 kB / 356.5 MB, free: 6.055 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.807e-05/0.1272, allocations: 3.953 kB / 356.5 MB, free: 6.051 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001041/0.1273, allocations: 15.98 kB / 356.5 MB, free: 6.035 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.443e-05/0.1273, allocations: 11.98 kB / 356.6 MB, free: 6.023 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.749e-06/0.1274, allocations: 384 / 356.6 MB, free: 6.023 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.285e-05/0.1274, allocations: 95.2 kB / 356.6 MB, free: 5.93 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1274, allocations: 0 / 356.6 MB, free: 5.93 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002266/0.1276, allocations: 12 kB / 356.7 MB, free: 5.918 MB / 286.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 (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.000692/0.1283, allocations: 0.7748 MB / 357.4 MB, free: 5.117 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003335/0.1287, allocations: 107.9 kB / 357.5 MB, free: 5.012 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.1287, allocations: 0 / 357.5 MB, free: 5.012 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001557/0.1289, allocations: 63.89 kB / 357.6 MB, free: 4.949 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002854/0.1292, allocations: 15.89 kB / 357.6 MB, free: 4.934 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004792/0.1296, allocations: 216.4 kB / 357.8 MB, free: 4.68 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000279/0.1299, allocations: 0.6848 MB / 358.5 MB, free: 3.969 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.154e-05/0.13, allocations: 8 kB / 358.5 MB, free: 3.961 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.241e-05/0.13, allocations: 23.42 kB / 358.5 MB, free: 3.938 MB / 286.1 MB Notification: Performance of SimCode: time 2.41e-07/0.13, allocations: 0 / 358.5 MB, free: 3.938 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01164/0.1417, allocations: 1.645 MB / 360.2 MB, free: 2.418 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001816/0.1419, allocations: 189.9 kB / 360.4 MB, free: 2.176 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.842/1.984, allocations: 3.938 kB / 360.4 MB, free: 2.172 MB / 286.1 MB (rm -f Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; mkfifo Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe >> ../files/Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_ComplexBlocks_Examples_TestConversionBlock_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_ComplexBlocks_Examples_TestConversionBlock.fmu > Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.mat does not exist to compare? outputFormat=mat