Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.ComplexBlocks.Examples.TestConversionBlock,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_ComplexBlocks_Examples_TestConversionBlock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.ComplexBlocks.Examples.TestConversionBlock,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_ComplexBlocks_Examples_TestConversionBlock",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002462/0.002461, allocations: 189.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.298/2.298, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001201/0.001201, allocations: 98.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004226/0.0004228, allocations: 12 kB / 327 MB, free: 15.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1079, allocations: 47.58 MB / 374.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.TestConversionBlock): time 0.002342/0.1103, allocations: 1.195 MB / 375.8 MB, free: 14.14 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001201/0.1116, allocations: 0.5009 MB / 376.3 MB, free: 13.63 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.332e-05/0.1117, allocations: 3.938 kB / 376.3 MB, free: 13.62 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.81e-05/0.1118, allocations: 15.92 kB / 376.3 MB, free: 13.61 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 8.06e-05/0.1119, allocations: 3.984 kB / 376.3 MB, free: 13.61 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001952/0.1121, allocations: 35.86 kB / 376.4 MB, free: 13.57 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001078/0.1122, allocations: 31.95 kB / 376.4 MB, free: 13.54 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001198/0.1124, allocations: 15.97 kB / 376.4 MB, free: 13.52 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001234/0.1125, allocations: 23.92 kB / 376.5 MB, free: 13.5 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.238e-05/0.1126, allocations: 27.83 kB / 376.5 MB, free: 13.47 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.676e-05/0.1126, allocations: 4 kB / 376.5 MB, free: 13.47 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.096e-05/0.1127, allocations: 19.94 kB / 376.5 MB, free: 13.45 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.845e-05/0.1127, allocations: 4 kB / 376.5 MB, free: 13.45 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.693e-05/0.1128, allocations: 37.62 kB / 376.5 MB, free: 13.4 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001353/0.1129, allocations: 43.92 kB / 376.6 MB, free: 13.36 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.1129, allocations: 0 / 376.6 MB, free: 13.36 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.113, allocations: 0 / 376.6 MB, free: 13.36 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.999e-06/0.113, allocations: 0 / 376.6 MB, free: 13.36 MB / 282.7 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.0008452/0.1138, allocations: 383.4 kB / 377 MB, free: 12.94 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.694e-05/0.1139, allocations: 16.02 kB / 377 MB, free: 12.92 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.674e-05/0.114, allocations: 34.56 kB / 377 MB, free: 12.88 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.366e-05/0.114, allocations: 4 kB / 377 MB, free: 12.88 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001696/0.1142, allocations: 174.8 kB / 377.2 MB, free: 12.66 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.872e-05/0.1142, allocations: 4 kB / 377.2 MB, free: 12.66 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.259e-05/0.1143, allocations: 4 kB / 377.2 MB, free: 12.66 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000438/0.1147, allocations: 93.64 kB / 377.3 MB, free: 12.56 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.1147, allocations: 0 / 377.3 MB, free: 12.56 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.644e-05/0.1148, allocations: 4 kB / 377.3 MB, free: 12.55 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.007e-06/0.1148, allocations: 4 kB / 377.3 MB, free: 12.55 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006013/0.1154, allocations: 103.8 kB / 377.4 MB, free: 12.45 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005991/0.116, allocations: 300.8 kB / 377.7 MB, free: 12.11 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004578/0.1165, allocations: 94.56 kB / 377.8 MB, free: 12 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.454e-05/0.1165, allocations: 0 / 377.8 MB, free: 12 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.032e-05/0.1166, allocations: 30.56 kB / 377.8 MB, free: 11.96 MB / 282.7 MB Notification: Performance of pre-optimization done (n=5): time 1.643e-06/0.1166, allocations: 3.938 kB / 377.8 MB, free: 11.96 MB / 282.7 MB Notification: Performance of matching and sorting (n=5): time 0.001041/0.1176, allocations: 181.6 kB / 378 MB, free: 11.78 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.624e-05/0.1177, allocations: 55.41 kB / 378 MB, free: 11.71 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001182/0.1178, allocations: 117.8 kB / 378.2 MB, free: 11.59 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.339e-05/0.1179, allocations: 25.7 kB / 378.2 MB, free: 11.55 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001101/0.118, allocations: 170.4 kB / 378.4 MB, free: 11.39 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.214e-05/0.118, allocations: 11.81 kB / 378.4 MB, free: 11.38 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.468e-06/0.118, allocations: 0 / 378.4 MB, free: 11.38 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.1182, allocations: 314.8 kB / 378.7 MB, free: 11.06 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003025/0.1185, allocations: 59.89 kB / 378.7 MB, free: 11 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000282/0.1188, allocations: 39.97 kB / 378.8 MB, free: 10.96 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002974/0.1191, allocations: 55.95 kB / 378.8 MB, free: 10.91 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1192, allocations: 0 / 378.8 MB, free: 10.91 MB / 282.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0006536/0.1198, allocations: 130.1 kB / 378.9 MB, free: 10.77 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.1199, allocations: 4 kB / 379 MB, free: 10.77 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.1199, allocations: 4 kB / 379 MB, free: 10.77 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.1199, allocations: 4 kB / 379 MB, free: 10.76 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000249/0.1202, allocations: 27.97 kB / 379 MB, free: 10.73 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.655e-06/0.1202, allocations: 0 / 379 MB, free: 10.73 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00018/0.1204, allocations: 19.92 kB / 379 MB, free: 10.71 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.454e-05/0.1204, allocations: 3.953 kB / 379 MB, free: 10.71 MB / 282.7 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 0.0001271/0.1205, allocations: 121.8 kB / 379.1 MB, free: 10.58 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.84e-05/0.1206, allocations: 7.906 kB / 379.1 MB, free: 10.57 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000728/0.1213, allocations: 149.6 kB / 379.3 MB, free: 10.42 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.326e-06/0.1213, allocations: 4 kB / 379.3 MB, free: 10.42 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.1214, allocations: 0 / 379.3 MB, free: 10.42 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.1214, allocations: 0 / 379.3 MB, free: 10.42 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000283/0.1217, allocations: 185.6 kB / 379.5 MB, free: 10.19 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/0.1217, allocations: 3.984 kB / 379.5 MB, free: 10.18 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002302/0.1219, allocations: 31.98 kB / 379.5 MB, free: 10.15 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.1219, allocations: 4 kB / 379.5 MB, free: 10.15 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.246e-05/0.122, allocations: 3.938 kB / 379.5 MB, free: 10.14 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.122, allocations: 384 / 379.5 MB, free: 10.14 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.122, allocations: 0 / 379.5 MB, free: 10.14 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007275/0.1227, allocations: 243.3 kB / 379.8 MB, free: 9.891 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.472e-05/0.1228, allocations: 85.02 kB / 379.8 MB, free: 9.789 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.477e-05/0.1228, allocations: 7.938 kB / 379.8 MB, free: 9.781 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002046/0.1231, allocations: 19.98 kB / 379.9 MB, free: 9.762 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.604e-05/0.1231, allocations: 7.984 kB / 379.9 MB, free: 9.754 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.034e-05/0.1232, allocations: 0 / 379.9 MB, free: 9.754 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.765e-05/0.1232, allocations: 91.27 kB / 380 MB, free: 9.664 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.1233, allocations: 0 / 380 MB, free: 9.664 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003273/0.1236, allocations: 12 kB / 380 MB, free: 9.652 MB / 282.7 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.001162/0.1248, allocations: 0.7709 MB / 380.7 MB, free: 8.855 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006682/0.1255, allocations: 107.9 kB / 380.8 MB, free: 8.75 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.1255, allocations: 3.938 kB / 380.8 MB, free: 8.746 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003288/0.1258, allocations: 67.89 kB / 380.9 MB, free: 8.68 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002634/0.1261, allocations: 0 / 380.9 MB, free: 8.68 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007293/0.1268, allocations: 242.1 kB / 381.2 MB, free: 8.398 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003615/0.1272, allocations: 0.6965 MB / 381.8 MB, free: 7.676 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.211e-05/0.1273, allocations: 19.44 kB / 381.9 MB, free: 7.656 MB / 282.7 MB Notification: Performance of SimCode: time 1.082e-06/0.1273, allocations: 0 / 381.9 MB, free: 7.656 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.332/2.459, allocations: 1.247 MB / 383.1 MB, free: 6.414 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_ComplexBlocks_Examples_TestConversionBlock_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_ComplexBlocks_Examples_TestConversionBlock.fmu > Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.mat does not exist to compare? outputFormat=mat