Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.ComplexBlocks.Examples.TestConversionBlock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.ComplexBlocks.Examples.TestConversionBlock,fileNamePrefix="Modelica_trunk_Modelica_ComplexBlocks_Examples_TestConversionBlock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.ComplexBlocks.Examples.TestConversionBlock,fileNamePrefix="Modelica_trunk_Modelica_ComplexBlocks_Examples_TestConversionBlock",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001051/0.001051, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.197/1.197, allocations: 227.2 MB / 245 MB, free: 7.621 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008056/0.0008057, allocations: 99.67 kB / 297.2 MB, free: 6.203 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002052/0.0002051, allocations: 4 kB / 358 MB, free: 9.453 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1837/0.184, allocations: 51.47 MB / 409.5 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08234/0.2663, allocations: 77.47 MB / 486.9 MB, free: 13.15 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001754/0.2665, allocations: 67.97 kB / 487 MB, free: 13.08 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003828/0.2704, allocations: 1.417 MB / 488.4 MB, free: 11.67 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.704e-06/0.2704, allocations: 0 / 488.4 MB, free: 11.67 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.622e-06/0.2704, allocations: 0 / 488.4 MB, free: 11.67 MB / 362.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.0004753/0.2709, allocations: 387.8 kB / 488.8 MB, free: 11.25 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.388e-05/0.271, allocations: 16.03 kB / 488.8 MB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.905e-05/0.271, allocations: 38.55 kB / 488.9 MB, free: 11.18 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.963e-05/0.2711, allocations: 11.89 kB / 488.9 MB, free: 11.17 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001222/0.2712, allocations: 170.9 kB / 489 MB, free: 10.96 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.487e-05/0.2712, allocations: 0 / 489 MB, free: 10.96 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.566e-05/0.2712, allocations: 11.89 kB / 489 MB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002763/0.2715, allocations: 97.58 kB / 489.1 MB, free: 10.85 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.193e-06/0.2715, allocations: 0 / 489.1 MB, free: 10.85 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.258e-05/0.2715, allocations: 7.938 kB / 489.1 MB, free: 10.84 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.2716, allocations: 4 kB / 489.2 MB, free: 10.84 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003169/0.2719, allocations: 99.91 kB / 489.3 MB, free: 10.74 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004162/0.2723, allocations: 300.8 kB / 489.5 MB, free: 10.4 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002428/0.2726, allocations: 86.53 kB / 489.6 MB, free: 10.3 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.142e-05/0.2726, allocations: 4.125 kB / 489.6 MB, free: 10.3 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.266e-05/0.2726, allocations: 30.56 kB / 489.7 MB, free: 10.26 MB / 362.7 MB Notification: Performance of pre-optimization done (n=5): time 1.333e-06/0.2726, allocations: 4 kB / 489.7 MB, free: 10.26 MB / 362.7 MB Notification: Performance of matching and sorting (n=5): time 0.0005909/0.2732, allocations: 185.5 kB / 489.8 MB, free: 10.07 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.438e-05/0.2733, allocations: 51.41 kB / 489.9 MB, free: 10.01 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.193e-05/0.2734, allocations: 105 kB / 490 MB, free: 9.898 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.603e-05/0.2734, allocations: 25.7 kB / 490 MB, free: 9.867 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.767e-05/0.2734, allocations: 99.98 kB / 490.1 MB, free: 9.766 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.348e-05/0.2735, allocations: 19.78 kB / 490.1 MB, free: 9.746 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.709e-06/0.2735, allocations: 0 / 490.1 MB, free: 9.746 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.2736, allocations: 322.8 kB / 490.5 MB, free: 9.422 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001613/0.2738, allocations: 47.95 kB / 490.5 MB, free: 9.375 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001431/0.2739, allocations: 43.97 kB / 490.5 MB, free: 9.332 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001521/0.2741, allocations: 52.33 kB / 490.6 MB, free: 9.281 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.2741, allocations: 0 / 490.6 MB, free: 9.281 MB / 362.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003557/0.2745, allocations: 137.6 kB / 490.7 MB, free: 9.141 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.2745, allocations: 10.5 kB / 490.7 MB, free: 9.133 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.2745, allocations: 0 / 490.7 MB, free: 9.133 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.2745, allocations: 0 / 490.7 MB, free: 9.133 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001465/0.2747, allocations: 23.97 kB / 490.8 MB, free: 9.109 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.2747, allocations: 4 kB / 490.8 MB, free: 9.105 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.298e-05/0.2748, allocations: 23.89 kB / 490.8 MB, free: 9.082 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-06/0.2748, allocations: 0 / 490.8 MB, free: 9.082 MB / 362.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 8.968e-05/0.2749, allocations: 117.8 kB / 490.9 MB, free: 8.957 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.506e-05/0.2749, allocations: 0 / 490.9 MB, free: 8.957 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004285/0.2754, allocations: 161.4 kB / 491.1 MB, free: 8.793 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.2754, allocations: 384 / 491.1 MB, free: 8.793 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.2754, allocations: 7.938 kB / 491.1 MB, free: 8.785 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.2754, allocations: 0 / 491.1 MB, free: 8.785 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001948/0.2756, allocations: 193.5 kB / 491.3 MB, free: 8.547 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.2756, allocations: 3.938 kB / 491.3 MB, free: 8.543 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001297/0.2757, allocations: 27.97 kB / 491.3 MB, free: 8.516 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.105e-06/0.2757, allocations: 0 / 491.3 MB, free: 8.516 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.556e-06/0.2758, allocations: 0 / 491.3 MB, free: 8.516 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.2758, allocations: 0 / 491.3 MB, free: 8.516 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.2758, allocations: 8 kB / 491.3 MB, free: 8.508 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004121/0.2762, allocations: 235.5 kB / 491.5 MB, free: 8.262 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.453e-05/0.2762, allocations: 88.91 kB / 491.6 MB, free: 8.156 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.888e-05/0.2763, allocations: 8 kB / 491.6 MB, free: 8.148 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001183/0.2764, allocations: 15.97 kB / 491.6 MB, free: 8.133 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.317e-05/0.2764, allocations: 7.984 kB / 491.7 MB, free: 8.125 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.893e-06/0.2765, allocations: 8 kB / 491.7 MB, free: 8.117 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.847e-05/0.2765, allocations: 87.27 kB / 491.7 MB, free: 8.031 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2765, allocations: 0 / 491.7 MB, free: 8.031 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002216/0.2768, allocations: 16 kB / 491.8 MB, free: 8.016 MB / 362.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.0007272/0.2775, allocations: 0.7787 MB / 492.5 MB, free: 7.207 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003722/0.2779, allocations: 111.8 kB / 492.6 MB, free: 7.098 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.432e-06/0.2779, allocations: 0 / 492.6 MB, free: 7.098 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001701/0.2781, allocations: 59.95 kB / 492.7 MB, free: 7.039 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001857/0.2783, allocations: 10.06 kB / 492.7 MB, free: 7.031 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005139/0.2788, allocations: 220.6 kB / 492.9 MB, free: 6.773 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002995/0.2791, allocations: 0.6887 MB / 493.6 MB, free: 6.059 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.803e-05/0.2791, allocations: 12 kB / 493.6 MB, free: 6.047 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.918e-05/0.2792, allocations: 19.42 kB / 493.7 MB, free: 6.027 MB / 362.7 MB Notification: Performance of SimCode: time 4.91e-07/0.2792, allocations: 0 / 493.7 MB, free: 6.027 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01223/0.2914, allocations: 1.695 MB / 495.3 MB, free: 4.473 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001942/0.2916, allocations: 180.7 kB / 495.5 MB, free: 4.234 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.483/1.775, allocations: 4.062 kB / 495.5 MB, free: 4.23 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; mkfifo Modelica_trunk_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe ; head -c 1048576 < Modelica_trunk_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe >> ../files/Modelica_trunk_Modelica.ComplexBlocks.Examples.TestConversionBlock.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.mat --tempDir=temp_Modelica_trunk_Modelica_ComplexBlocks_Examples_TestConversionBlock_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_ComplexBlocks_Examples_TestConversionBlock.fmu > Modelica_trunk_Modelica.ComplexBlocks.Examples.TestConversionBlock.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.ComplexBlocks.Examples.TestConversionBlock_res.mat does not exist to compare? outputFormat=mat