Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.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.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_AD_DA_conversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001431/0.001434, allocations: 178.9 kB / 8.477 MB, free: 1.883 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.143/1.143, allocations: 205.2 MB / 214.1 MB, free: 1.891 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008485/0.0008486, allocations: 95.38 kB / 262.1 MB, free: 1.84 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1493/0.1502, allocations: 52.96 MB / 315.1 MB, free: 22.96 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07568/0.2259, allocations: 47.59 MB / 362.6 MB, free: 7.316 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2177/0.4436, allocations: 77.63 MB / 440.3 MB, free: 1.824 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001751/0.4439, allocations: 63.78 kB / 440.3 MB, free: 1.793 MB / 314.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.017/0.4609, allocations: 7.324 MB / 447.7 MB, free: 11.78 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.267e-05/0.4609, allocations: 19.92 kB / 447.7 MB, free: 11.76 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.193e-05/0.461, allocations: 27.62 kB / 447.7 MB, free: 11.73 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003898/0.4614, allocations: 249.3 kB / 447.9 MB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.112e-05/0.4615, allocations: 45.58 kB / 448 MB, free: 11.41 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.56e-05/0.4615, allocations: 15.91 kB / 448 MB, free: 11.39 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002615/0.4618, allocations: 156.1 kB / 448.2 MB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003147/0.4621, allocations: 208.9 kB / 448.4 MB, free: 11.13 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.182e-06/0.4621, allocations: 0 / 448.4 MB, free: 11.13 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.209e-05/0.4621, allocations: 8 kB / 448.4 MB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.4622, allocations: 4 kB / 448.4 MB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001185/0.4633, allocations: 0.724 MB / 449.1 MB, free: 10.46 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002811/0.4636, allocations: 254.3 kB / 449.3 MB, free: 10.27 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002362/0.4639, allocations: 192.8 kB / 449.5 MB, free: 10.15 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.444e-05/0.4639, allocations: 4 kB / 449.5 MB, free: 10.14 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002831/0.4642, allocations: 273 kB / 449.8 MB, free: 9.891 MB / 330.7 MB Notification: Performance of pre-optimization done (n=31): time 1.493e-06/0.4642, allocations: 0 / 449.8 MB, free: 9.891 MB / 330.7 MB Notification: Performance of matching and sorting (n=31): time 0.0003962/0.4646, allocations: 266.9 kB / 450.1 MB, free: 9.68 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.726e-05/0.4647, allocations: 227.5 kB / 450.3 MB, free: 9.414 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001194/0.4649, allocations: 160.4 kB / 450.4 MB, free: 9.27 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.261e-05/0.4649, allocations: 32.58 kB / 450.5 MB, free: 9.234 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.639e-05/0.465, allocations: 127.3 kB / 450.6 MB, free: 9.113 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.872e-05/0.465, allocations: 72.69 kB / 450.7 MB, free: 9.055 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.123e-05/0.465, allocations: 4.031 kB / 450.7 MB, free: 9.051 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.643e-05/0.4651, allocations: 336.4 kB / 451 MB, free: 8.723 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001238/0.4653, allocations: 86.92 kB / 451.1 MB, free: 8.656 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001833/0.4655, allocations: 153.5 kB / 451.2 MB, free: 8.52 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001517/0.4656, allocations: 107 kB / 451.3 MB, free: 8.445 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.4656, allocations: 4 kB / 451.3 MB, free: 8.441 MB / 330.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0003888/0.466, allocations: 302.5 kB / 451.6 MB, free: 8.195 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.857e-06/0.466, allocations: 4 kB / 451.6 MB, free: 8.191 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.988e-06/0.4661, allocations: 0 / 451.6 MB, free: 8.191 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.538e-06/0.4661, allocations: 4 kB / 451.6 MB, free: 8.188 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001839/0.4663, allocations: 47.28 kB / 451.7 MB, free: 8.145 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.4663, allocations: 4 kB / 451.7 MB, free: 8.141 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001791/0.4665, allocations: 23.89 kB / 451.7 MB, free: 8.117 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.918e-05/0.4665, allocations: 8 kB / 451.7 MB, free: 8.109 MB / 330.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.0001598/0.4666, allocations: 210.3 kB / 451.9 MB, free: 7.891 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.968e-05/0.4667, allocations: 19.81 kB / 452 MB, free: 7.871 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.697e-05/0.4667, allocations: 23.97 kB / 452 MB, free: 7.855 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.668e-06/0.4668, allocations: 7.984 kB / 452 MB, free: 7.848 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.4668, allocations: 0 / 452 MB, free: 7.848 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.4668, allocations: 3.984 kB / 452 MB, free: 7.844 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008344/0.4676, allocations: 0.767 MB / 452.8 MB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.4676, allocations: 0 / 452.8 MB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001123/0.4677, allocations: 23.92 kB / 452.8 MB, free: 7.125 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.991e-06/0.4678, allocations: 4 kB / 452.8 MB, free: 7.121 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.507e-05/0.4678, allocations: 4 kB / 452.8 MB, free: 7.117 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.4678, allocations: 4.031 kB / 452.8 MB, free: 7.113 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.4678, allocations: 7.922 kB / 452.8 MB, free: 7.105 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004289/0.4682, allocations: 410.3 kB / 453.2 MB, free: 6.75 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004917/0.4687, allocations: 0.7947 MB / 454 MB, free: 6 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.305e-05/0.4688, allocations: 100.5 kB / 454.1 MB, free: 5.887 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.871e-05/0.4689, allocations: 11.98 kB / 454.1 MB, free: 5.875 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002372/0.4691, allocations: 27.55 kB / 454.1 MB, free: 5.852 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.577e-05/0.4692, allocations: 35 kB / 454.2 MB, free: 5.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.861e-05/0.4692, allocations: 8 kB / 454.2 MB, free: 5.812 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.2e-05/0.4693, allocations: 124.7 kB / 454.3 MB, free: 5.707 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008683/0.4702, allocations: 71.83 kB / 454.4 MB, free: 5.637 MB / 330.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.0001426/0.4703, allocations: 123.9 kB / 454.5 MB, free: 5.504 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004013/0.4707, allocations: 354.3 kB / 454.8 MB, free: 5.211 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.4707, allocations: 0 / 454.8 MB, free: 5.211 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002861/0.471, allocations: 312.6 kB / 455.1 MB, free: 4.996 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005402/0.4716, allocations: 115.7 kB / 455.3 MB, free: 4.895 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007087/0.4723, allocations: 375.7 kB / 455.6 MB, free: 4.559 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003841/0.4727, allocations: 0.7663 MB / 456.4 MB, free: 3.77 MB / 330.7 MB Notification: Performance of SimCode: time 3.5e-07/0.4727, allocations: 0 / 456.4 MB, free: 3.77 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_AD_DA_conversion_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_AD_DA_conversion.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1)