Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.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.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_AD_DA_conversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_AD_DA_conversion",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.00098/0.00098, allocations: 182 kB / 8.129 MB, free: 2.219 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.142/1.142, allocations: 221.4 MB / 229.9 MB, free: 3.023 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.0009715/0.0009715, allocations: 106.5 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.104/0.105, allocations: 55.81 MB / 336.6 MB, free: 9.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2198/0.3248, allocations: 50.39 MB / 387 MB, free: 38.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08961/0.4145, allocations: 78.71 MB / 465.7 MB, free: 8.164 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001888/0.4147, allocations: 75.89 kB / 465.8 MB, free: 8.09 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.01762/0.4323, allocations: 7.485 MB / 473.3 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.112e-05/0.4324, allocations: 8 kB / 473.3 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.414e-05/0.4325, allocations: 27.62 kB / 473.3 MB, free: 0.543 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003763/0.4329, allocations: 256.5 kB / 473.5 MB, free: 256 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.828e-05/0.4329, allocations: 45.7 kB / 473.6 MB, free: 204 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.265e-05/0.433, allocations: 12 kB / 473.6 MB, free: 192 kB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000285/0.4333, allocations: 164.2 kB / 473.8 MB, free: 28 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003607/0.4336, allocations: 204.1 kB / 474 MB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.4337, allocations: 0 / 474 MB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.317e-05/0.4337, allocations: 0 / 474 MB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.4337, allocations: 8 kB / 474 MB, free: 15.81 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001314/0.435, allocations: 0.7253 MB / 474.7 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003151/0.4354, allocations: 255.4 kB / 474.9 MB, free: 14.78 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000254/0.4356, allocations: 190.3 kB / 475.1 MB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.409e-05/0.4357, allocations: 11.91 kB / 475.1 MB, free: 14.58 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002934/0.436, allocations: 278 kB / 475.4 MB, free: 14.27 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.603e-06/0.436, allocations: 0 / 475.4 MB, free: 14.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.000413/0.4364, allocations: 261.4 kB / 475.7 MB, free: 14.01 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001058/0.4365, allocations: 229.5 kB / 475.9 MB, free: 13.74 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001316/0.4366, allocations: 154 kB / 476 MB, free: 13.58 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.441e-05/0.4367, allocations: 33.7 kB / 476.1 MB, free: 13.54 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.058e-05/0.4368, allocations: 130.4 kB / 476.2 MB, free: 13.41 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.802e-05/0.4368, allocations: 79.09 kB / 476.3 MB, free: 13.34 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.234e-05/0.4369, allocations: 0 / 476.3 MB, free: 13.34 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001101/0.437, allocations: 334.7 kB / 476.6 MB, free: 13 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000134/0.4371, allocations: 84.69 kB / 476.7 MB, free: 12.91 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000192/0.4373, allocations: 155.8 kB / 476.8 MB, free: 12.73 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001541/0.4375, allocations: 107.1 kB / 476.9 MB, free: 12.63 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.4375, allocations: 0 / 476.9 MB, free: 12.63 MB / 362.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0004182/0.4379, allocations: 300.7 kB / 477.2 MB, free: 12.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.03e-05/0.4379, allocations: 4 kB / 477.2 MB, free: 12.33 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.4379, allocations: 128 / 477.2 MB, free: 12.33 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.438, allocations: 8 kB / 477.3 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001846/0.4381, allocations: 35.92 kB / 477.3 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/0.4382, allocations: 4 kB / 477.3 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001979/0.4384, allocations: 27.83 kB / 477.3 MB, free: 12.26 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.088e-05/0.4384, allocations: 16 kB / 477.3 MB, free: 12.24 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.dA_Converter.y,dA_Converter.y,$PRE.aD_Converter.z,aD_Converter.z,$PRE.aD_Converter.y[1],aD_Converter.y[1],$PRE.aD_Converter.y[2],aD_Converter.y[2],$PRE.aD_Converter.y[3],aD_Converter.y[3],$PRE.aD_Converter.y[4],aD_Converter.y[4],$PRE.aD_Converter.y[5],aD_Converter.y[5],$PRE.aD_Converter.y[6],aD_Converter.y[6],$PRE.aD_Converter.y[7],aD_Converter.y[7],dA_Converter.x[1],dA_Converter.x[2],dA_Converter.x[3],dA_Converter.x[4],dA_Converter.x[5],dA_Converter.x[6],dA_Converter.x[7],$whenCondition3,$whenCondition1,$whenCondition2,aD_Converter.trig,$PRE.pulse.T0,pulse.T0,$PRE.pulse.np,pulse.np,pulse.sampling,$PRE.dA_Converter.vout,dA_Converter.vout) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 3 * 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.000172/0.4386, allocations: 206 kB / 477.5 MB, free: 12.02 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.525e-05/0.4386, allocations: 27.72 kB / 477.6 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.832e-05/0.4387, allocations: 26.58 kB / 477.6 MB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.4387, allocations: 4 kB / 477.6 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.4387, allocations: 0 / 477.6 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.4387, allocations: 3.984 kB / 477.6 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009318/0.4396, allocations: 0.7565 MB / 478.4 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.4397, allocations: 0 / 478.4 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001215/0.4398, allocations: 23.98 kB / 478.4 MB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.4398, allocations: 4.031 kB / 478.4 MB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.528e-05/0.4398, allocations: 15.97 kB / 478.4 MB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.4399, allocations: 0 / 478.4 MB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.4399, allocations: 4 kB / 478.4 MB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004709/0.4403, allocations: 415.4 kB / 478.8 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005682/0.4409, allocations: 0.7874 MB / 479.6 MB, free: 9.859 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.273e-05/0.441, allocations: 108.8 kB / 479.7 MB, free: 9.734 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.466e-05/0.4411, allocations: 8 kB / 479.7 MB, free: 9.727 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002465/0.4413, allocations: 31.97 kB / 479.7 MB, free: 9.695 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.603e-05/0.4414, allocations: 19.97 kB / 479.8 MB, free: 9.676 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.8e-05/0.4414, allocations: 15.98 kB / 479.8 MB, free: 9.66 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.021e-05/0.4415, allocations: 124.3 kB / 479.9 MB, free: 9.539 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009121/0.4424, allocations: 63.84 kB / 480 MB, free: 9.477 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition3,$whenCondition1,$whenCondition2,aD_Converter.y[1],aD_Converter.y[2],aD_Converter.y[3],aD_Converter.y[4],aD_Converter.y[5],aD_Converter.y[6],aD_Converter.y[7],aD_Converter.trig,aD_Converter.z,pulse.T0,pulse.np,pulse.sampling,dA_Converter.x[1],dA_Converter.x[2],dA_Converter.x[3],dA_Converter.x[4],dA_Converter.x[5],dA_Converter.x[6],dA_Converter.x[7],dA_Converter.vout,dA_Converter.y) * Number of discrete states: 13 (pulse.np,aD_Converter.y[7],aD_Converter.y[6],aD_Converter.y[5],aD_Converter.y[4],aD_Converter.y[3],aD_Converter.y[2],aD_Converter.y[1],aD_Converter.z,$whenCondition1,dA_Converter.vout,dA_Converter.y,$whenCondition2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 2 * 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.0001955/0.4426, allocations: 134.1 kB / 480.1 MB, free: 9.336 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005158/0.4432, allocations: 344.9 kB / 480.4 MB, free: 8.98 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.4432, allocations: 0 / 480.4 MB, free: 8.98 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003795/0.4436, allocations: 315.3 kB / 480.7 MB, free: 8.66 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000596/0.4442, allocations: 118.4 kB / 480.8 MB, free: 8.551 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008024/0.445, allocations: 373.4 kB / 481.2 MB, free: 8.164 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003861/0.4454, allocations: 0.7819 MB / 482 MB, free: 7.359 MB / 362.7 MB Notification: Performance of SimCode: time 3.31e-07/0.4454, allocations: 0 / 482 MB, free: 7.359 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_AD_DA_conversion_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_AD_DA_conversion.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1)