Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.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.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_AD_DA_conversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001271/0.001271, allocations: 204.4 kB / 8.543 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.156/1.156, allocations: 225.5 MB / 234.4 MB, free: 3.305 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009024/0.0009026, allocations: 93.8 kB / 286.3 MB, free: 5.309 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09303/0.09396, allocations: 56.9 MB / 343.2 MB, free: 8.598 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08505/0.179, allocations: 51.47 MB / 394.7 MB, free: 5.07 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2151/0.3942, allocations: 79.52 MB / 474.2 MB, free: 12.43 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001805/0.3944, allocations: 67.98 kB / 474.3 MB, free: 12.4 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.0155/0.4099, allocations: 7.585 MB / 481.9 MB, free: 7.336 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.095e-05/0.41, allocations: 12 kB / 481.9 MB, free: 7.324 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001677/0.4102, allocations: 43.61 kB / 481.9 MB, free: 7.281 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003318/0.4105, allocations: 248.4 kB / 482.2 MB, free: 7.012 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.789e-05/0.4106, allocations: 45.7 kB / 482.2 MB, free: 6.961 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.947e-05/0.4106, allocations: 15.91 kB / 482.2 MB, free: 6.945 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002554/0.4109, allocations: 154 kB / 482.4 MB, free: 6.848 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000281/0.4112, allocations: 212.1 kB / 482.6 MB, free: 6.68 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.4112, allocations: 7.922 kB / 482.6 MB, free: 6.672 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.334e-05/0.4112, allocations: 0 / 482.6 MB, free: 6.672 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.4112, allocations: 4 kB / 482.6 MB, free: 6.668 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001082/0.4123, allocations: 0.7207 MB / 483.3 MB, free: 6.012 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002612/0.4126, allocations: 248.8 kB / 483.6 MB, free: 5.832 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002106/0.4128, allocations: 196.8 kB / 483.8 MB, free: 5.703 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.011e-05/0.4128, allocations: 4 kB / 483.8 MB, free: 5.699 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002258/0.4131, allocations: 261 kB / 484 MB, free: 5.457 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 2.013e-06/0.4131, allocations: 4 kB / 484 MB, free: 5.453 MB / 346.7 MB Notification: Performance of matching and sorting (n=31): time 0.0003674/0.4134, allocations: 274.1 kB / 484.3 MB, free: 5.238 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.117e-05/0.4135, allocations: 228.2 kB / 484.5 MB, free: 4.973 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001092/0.4136, allocations: 155.8 kB / 484.7 MB, free: 4.836 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.635e-05/0.4137, allocations: 34.14 kB / 484.7 MB, free: 4.801 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.428e-05/0.4137, allocations: 122.5 kB / 484.8 MB, free: 4.684 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.585e-05/0.4138, allocations: 74.77 kB / 484.9 MB, free: 4.621 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.147e-05/0.4138, allocations: 0 / 484.9 MB, free: 4.621 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.571e-05/0.4138, allocations: 337.2 kB / 485.2 MB, free: 4.293 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00012/0.414, allocations: 90.42 kB / 485.3 MB, free: 4.227 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001407/0.4141, allocations: 147 kB / 485.5 MB, free: 4.094 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000137/0.4143, allocations: 117.5 kB / 485.6 MB, free: 4.016 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.4143, allocations: 0 / 485.6 MB, free: 4.016 MB / 346.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0003724/0.4146, allocations: 295.3 kB / 485.9 MB, free: 3.777 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.051e-05/0.4147, allocations: 4 kB / 485.9 MB, free: 3.773 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.4147, allocations: 4 kB / 485.9 MB, free: 3.77 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.145e-05/0.4147, allocations: 3.938 kB / 485.9 MB, free: 3.766 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001869/0.4149, allocations: 40.78 kB / 485.9 MB, free: 3.727 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.551e-06/0.4149, allocations: 8.125 kB / 485.9 MB, free: 3.719 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001811/0.4151, allocations: 27.83 kB / 485.9 MB, free: 3.691 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.213e-05/0.4151, allocations: 13.53 kB / 486 MB, free: 3.684 MB / 346.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.0001361/0.4153, allocations: 210.4 kB / 486.2 MB, free: 3.465 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.663e-05/0.4153, allocations: 23.81 kB / 486.2 MB, free: 3.441 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.13e-05/0.4154, allocations: 15.59 kB / 486.2 MB, free: 3.434 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.574e-06/0.4154, allocations: 4 kB / 486.2 MB, free: 3.43 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.4154, allocations: 0 / 486.2 MB, free: 3.43 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.93e-06/0.4154, allocations: 4.859 kB / 486.2 MB, free: 3.426 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007258/0.4161, allocations: 0.7648 MB / 487 MB, free: 2.734 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.4161, allocations: 0 / 487 MB, free: 2.734 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001083/0.4162, allocations: 23.98 kB / 487 MB, free: 2.711 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.4163, allocations: 0 / 487 MB, free: 2.711 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.539e-05/0.4163, allocations: 7.188 kB / 487 MB, free: 2.707 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.327e-06/0.4163, allocations: 5.5 kB / 487 MB, free: 2.703 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.4163, allocations: 0 / 487 MB, free: 2.703 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003775/0.4167, allocations: 431.4 kB / 487.4 MB, free: 2.328 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003831/0.4171, allocations: 0.782 MB / 488.2 MB, free: 1.59 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.635e-05/0.4171, allocations: 99.58 kB / 488.3 MB, free: 1.477 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.939e-05/0.4172, allocations: 14.86 kB / 488.3 MB, free: 1.465 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002313/0.4174, allocations: 23.98 kB / 488.4 MB, free: 1.441 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.021e-05/0.4175, allocations: 27.27 kB / 488.4 MB, free: 1.418 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.516e-05/0.4175, allocations: 11.19 kB / 488.4 MB, free: 1.41 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.672e-05/0.4176, allocations: 123.6 kB / 488.5 MB, free: 1.305 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009187/0.4185, allocations: 63.84 kB / 488.6 MB, free: 1.242 MB / 346.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.0001572/0.4187, allocations: 139.8 kB / 488.7 MB, free: 1.102 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003731/0.4191, allocations: 361 kB / 489.1 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.4191, allocations: 0 / 489.1 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002418/0.4193, allocations: 317.4 kB / 489.4 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005364/0.4199, allocations: 107.4 kB / 489.5 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006146/0.4205, allocations: 368.7 kB / 489.8 MB, free: 172 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003374/0.4208, allocations: 0.7739 MB / 490.6 MB, free: 15.37 MB / 362.7 MB Notification: Performance of SimCode: time 3.1e-07/0.4209, allocations: 0 / 490.6 MB, free: 15.37 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_AD_DA_conversion_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_AD_DA_conversion.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1)