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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009521/0.0009521, allocations: 191.3 kB / 8.139 MB, free: 2.184 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.144/1.144, allocations: 221.4 MB / 229.9 MB, free: 3.07 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009266/0.0009263, allocations: 95.8 kB / 280.8 MB, free: 1.27 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1012/0.1022, allocations: 55.81 MB / 336.6 MB, free: 9.445 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2185/0.3208, allocations: 50.38 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08436/0.4052, allocations: 75.79 MB / 462.8 MB, free: 11.03 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00017/0.4054, allocations: 67.91 kB / 462.8 MB, free: 10.96 MB / 346.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.004273/0.4097, allocations: 1.421 MB / 464.3 MB, free: 9.516 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.4097, allocations: 8 kB / 464.3 MB, free: 9.508 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.08e-05/0.4098, allocations: 7.906 kB / 464.3 MB, free: 9.5 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001205/0.4099, allocations: 168.1 kB / 464.4 MB, free: 9.297 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.59e-05/0.4099, allocations: 0 / 464.4 MB, free: 9.297 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.275e-05/0.4099, allocations: 4 kB / 464.4 MB, free: 9.293 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001147/0.4101, allocations: 31.91 kB / 464.5 MB, free: 9.262 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001034/0.4102, allocations: 65.61 kB / 464.5 MB, free: 9.191 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.183e-06/0.4102, allocations: 0 / 464.5 MB, free: 9.191 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/0.4102, allocations: 0 / 464.5 MB, free: 9.191 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.4102, allocations: 2.156 kB / 464.5 MB, free: 9.191 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003683/0.4106, allocations: 285.4 kB / 464.8 MB, free: 8.875 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001004/0.4107, allocations: 50.52 kB / 464.9 MB, free: 8.816 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.534e-05/0.4108, allocations: 20.98 kB / 464.9 MB, free: 8.793 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.537e-05/0.4108, allocations: 0 / 464.9 MB, free: 8.793 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.752e-05/0.4108, allocations: 34.47 kB / 464.9 MB, free: 8.75 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 8.31e-07/0.4108, allocations: 0 / 464.9 MB, free: 8.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001897/0.411, allocations: 61.69 kB / 465 MB, free: 8.684 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.136e-05/0.411, allocations: 51.41 kB / 465 MB, free: 8.621 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.108e-05/0.4111, allocations: 104.9 kB / 465.1 MB, free: 8.512 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.23e-05/0.4111, allocations: 29.7 kB / 465.2 MB, free: 8.477 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.286e-05/0.4112, allocations: 92.05 kB / 465.3 MB, free: 8.383 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.06e-05/0.4112, allocations: 19.73 kB / 465.3 MB, free: 8.363 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.468e-06/0.4112, allocations: 1.031 kB / 465.3 MB, free: 8.363 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.4113, allocations: 315.5 kB / 465.6 MB, free: 8.047 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.139e-05/0.4114, allocations: 12 kB / 465.6 MB, free: 8.035 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.784e-05/0.4114, allocations: 17.06 kB / 465.6 MB, free: 8.02 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.917e-05/0.4114, allocations: 11.98 kB / 465.6 MB, free: 8.008 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.4114, allocations: 0 / 465.6 MB, free: 8.008 MB / 346.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001054/0.4115, allocations: 65.61 kB / 465.7 MB, free: 7.938 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.046e-05/0.4116, allocations: 11.94 kB / 465.7 MB, free: 7.926 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.4116, allocations: 0 / 465.7 MB, free: 7.926 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.4116, allocations: 0.6875 kB / 465.7 MB, free: 7.926 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001595/0.4118, allocations: 27.97 kB / 465.7 MB, free: 7.898 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.616e-06/0.4118, allocations: 4.844 kB / 465.7 MB, free: 7.895 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001001/0.4119, allocations: 19.89 kB / 465.8 MB, free: 7.875 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.156e-05/0.4119, allocations: 6.578 kB / 465.8 MB, free: 7.871 MB / 346.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 () * 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 5.637e-05/0.412, allocations: 104.9 kB / 465.9 MB, free: 7.762 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.853e-05/0.412, allocations: 7.906 kB / 465.9 MB, free: 7.754 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001428/0.4121, allocations: 87.09 kB / 466 MB, free: 7.668 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/0.4122, allocations: 0 / 466 MB, free: 7.668 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.4122, allocations: 0 / 466 MB, free: 7.668 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.4122, allocations: 0 / 466 MB, free: 7.668 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001541/0.4123, allocations: 162.9 kB / 466.1 MB, free: 7.473 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.4123, allocations: 0 / 466.1 MB, free: 7.473 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001414/0.4125, allocations: 27.98 kB / 466.1 MB, free: 7.445 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.4125, allocations: 4 kB / 466.1 MB, free: 7.441 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.666e-06/0.4125, allocations: 0 / 466.1 MB, free: 7.441 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.4125, allocations: 3.938 kB / 466.1 MB, free: 7.438 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.4125, allocations: 1.125 kB / 466.2 MB, free: 7.438 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001609/0.4127, allocations: 171.4 kB / 466.3 MB, free: 7.254 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002504/0.4129, allocations: 0.5389 MB / 466.9 MB, free: 6.695 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.955e-05/0.413, allocations: 81.39 kB / 466.9 MB, free: 6.598 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.958e-05/0.413, allocations: 4 kB / 466.9 MB, free: 6.594 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000137/0.4132, allocations: 19.98 kB / 467 MB, free: 6.574 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.07e-05/0.4132, allocations: 3.984 kB / 467 MB, free: 6.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.462e-06/0.4132, allocations: 11.84 kB / 467 MB, free: 6.559 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.675e-05/0.4133, allocations: 91.2 kB / 467.1 MB, free: 6.469 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007789/0.4141, allocations: 19.94 kB / 467.1 MB, free: 6.449 MB / 346.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 () * 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.0001382/0.4142, allocations: 107.2 kB / 467.2 MB, free: 6.336 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001107/0.4143, allocations: 37.12 kB / 467.2 MB, free: 6.301 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.4143, allocations: 0 / 467.2 MB, free: 6.301 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.977e-05/0.4144, allocations: 31.92 kB / 467.3 MB, free: 6.27 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001605/0.4145, allocations: 2.922 kB / 467.3 MB, free: 6.27 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002827/0.4148, allocations: 98.88 kB / 467.4 MB, free: 6.148 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002757/0.4151, allocations: 0.7114 MB / 468.1 MB, free: 5.41 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4151, allocations: 0 / 468.1 MB, free: 5.41 MB / 346.7 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