Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_4_1_0-beta_om_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_1_0-beta_om_Modelica_Electrical_Analog_Examples_AD_DA_conversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001756/0.001761, allocations: 121.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002216/0.002216, allocations: 203.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.381/1.381, allocations: 227.7 MB / 247.2 MB, free: 10.19 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001934/0.001934, allocations: 67.89 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2197/0.2216, allocations: 50.55 MB / 409.1 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003705/0.2254, allocations: 2.38 MB / 411.5 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001441/0.2269, allocations: 0.7322 MB / 412.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001695/0.2271, allocations: 7.938 kB / 412.2 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001736/0.2273, allocations: 35.7 kB / 412.2 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001529/0.2274, allocations: 55.48 kB / 412.3 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000451/0.2279, allocations: 103.7 kB / 412.4 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003987/0.2283, allocations: 275 kB / 412.7 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002494/0.2286, allocations: 111 kB / 412.8 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000302/0.2289, allocations: 123.6 kB / 412.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002133/0.2291, allocations: 111.5 kB / 413 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.497e-05/0.2292, allocations: 24 kB / 413 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.131e-05/0.2293, allocations: 24 kB / 413 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.892e-05/0.2293, allocations: 63.75 kB / 413.1 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001553/0.2295, allocations: 123.4 kB / 413.2 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004036/0.2299, allocations: 285.8 kB / 413.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2299, allocations: 0 / 413.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.2299, allocations: 0 / 413.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.217e-06/0.23, allocations: 0 / 413.5 MB, free: 12.93 MB / 334.1 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.001104/0.2311, allocations: 0.6716 MB / 414.2 MB, free: 12.19 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.2311, allocations: 15.97 kB / 414.2 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.602e-05/0.2312, allocations: 54.73 kB / 414.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001744/0.2314, allocations: 40.73 kB / 414.3 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003501/0.2317, allocations: 252.4 kB / 414.5 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.859e-05/0.2318, allocations: 50.05 kB / 414.6 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.422e-05/0.2319, allocations: 24.36 kB / 414.6 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005495/0.2324, allocations: 256.1 kB / 414.9 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.2324, allocations: 0 / 414.9 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.377e-05/0.2325, allocations: 4 kB / 414.9 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/0.2325, allocations: 4 kB / 414.9 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004845/0.233, allocations: 208.2 kB / 415.1 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001339/0.2343, allocations: 0.7565 MB / 415.8 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005832/0.2349, allocations: 299.2 kB / 416.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004147/0.2353, allocations: 222.3 kB / 416.3 MB, free: 9.898 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.724e-05/0.2354, allocations: 0 / 416.3 MB, free: 9.898 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005298/0.2359, allocations: 324.2 kB / 416.6 MB, free: 9.551 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.583e-06/0.2359, allocations: 0 / 416.6 MB, free: 9.551 MB / 334.1 MB Notification: Performance of matching and sorting (n=31): time 0.001173/0.2371, allocations: 0.575 MB / 417.2 MB, free: 8.957 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001246/0.2372, allocations: 199.9 kB / 417.4 MB, free: 8.719 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001859/0.2374, allocations: 188.2 kB / 417.6 MB, free: 8.523 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.482e-05/0.2375, allocations: 33.7 kB / 417.6 MB, free: 8.484 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.2376, allocations: 140.8 kB / 417.8 MB, free: 8.34 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.503e-05/0.2377, allocations: 87.3 kB / 417.9 MB, free: 8.254 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001029/0.2378, allocations: 74.02 kB / 417.9 MB, free: 8.176 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.2379, allocations: 330.8 kB / 418.3 MB, free: 7.844 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002381/0.2382, allocations: 104.6 kB / 418.4 MB, free: 7.738 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002744/0.2385, allocations: 179.3 kB / 418.5 MB, free: 7.543 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005478/0.239, allocations: 412.6 kB / 418.9 MB, free: 7.094 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.239, allocations: 0 / 418.9 MB, free: 7.094 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007/0.2397, allocations: 438.3 kB / 419.4 MB, free: 6.641 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.352e-05/0.2398, allocations: 97.03 kB / 419.5 MB, free: 6.527 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.2398, allocations: 0 / 419.5 MB, free: 6.527 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.2398, allocations: 8.094 kB / 419.5 MB, free: 6.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001944/0.24, allocations: 39.92 kB / 419.5 MB, free: 6.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.2401, allocations: 7.938 kB / 419.5 MB, free: 6.473 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001751/0.2402, allocations: 35.77 kB / 419.5 MB, free: 6.438 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.644e-05/0.2403, allocations: 16 kB / 419.6 MB, free: 6.422 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 36 (dA_Converter.y,$PRE.dA_Converter.y,aD_Converter.z,$PRE.aD_Converter.z,dA_Converter.x[7],dA_Converter.x[6],dA_Converter.x[5],dA_Converter.x[4],dA_Converter.x[3],dA_Converter.x[2],dA_Converter.x[1],aD_Converter.y[7],$PRE.aD_Converter.y[7],aD_Converter.y[6],$PRE.aD_Converter.y[6],aD_Converter.y[5],$PRE.aD_Converter.y[5],aD_Converter.y[4],$PRE.aD_Converter.y[4],aD_Converter.y[3],$PRE.aD_Converter.y[3],aD_Converter.y[2],$PRE.aD_Converter.y[2],aD_Converter.y[1],$PRE.aD_Converter.y[1],dA_Converter.trig,pulse.sampling,pulse.np,$PRE.pulse.np,pulse.T0,$PRE.pulse.T0,$whenCondition2,$whenCondition1,$whenCondition3,dA_Converter.vout,$PRE.dA_Converter.vout) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002326/0.2405, allocations: 239.8 kB / 419.8 MB, free: 6.168 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.809e-05/0.2406, allocations: 31.8 kB / 419.8 MB, free: 6.137 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.457e-05/0.2406, allocations: 22.83 kB / 419.9 MB, free: 6.117 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.2406, allocations: 4 kB / 419.9 MB, free: 6.113 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.2407, allocations: 3.938 kB / 419.9 MB, free: 6.109 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.2407, allocations: 0 / 419.9 MB, free: 6.109 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001394/0.2421, allocations: 0.9357 MB / 420.8 MB, free: 5.102 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.2421, allocations: 0 / 420.8 MB, free: 5.102 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001095/0.2422, allocations: 27.92 kB / 420.8 MB, free: 5.074 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.2422, allocations: 0 / 420.8 MB, free: 5.074 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.688e-05/0.2422, allocations: 11.98 kB / 420.8 MB, free: 5.062 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.345e-06/0.2422, allocations: 0 / 420.8 MB, free: 5.062 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2423, allocations: 4.031 kB / 420.8 MB, free: 5.059 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009232/0.2432, allocations: 0.609 MB / 421.4 MB, free: 4.418 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.874e-05/0.2433, allocations: 112.8 kB / 421.6 MB, free: 4.289 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.857e-05/0.2433, allocations: 16 kB / 421.6 MB, free: 4.273 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002324/0.2436, allocations: 19.97 kB / 421.6 MB, free: 4.254 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.821e-05/0.2437, allocations: 23.98 kB / 421.6 MB, free: 4.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.78e-05/0.2437, allocations: 11.92 kB / 421.6 MB, free: 4.219 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001159/0.2438, allocations: 139.2 kB / 421.8 MB, free: 4.082 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2438, allocations: 0 / 421.8 MB, free: 4.082 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003471/0.2442, allocations: 71.94 kB / 421.8 MB, free: 4.012 MB / 334.1 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.z,pulse.T0,pulse.np,pulse.sampling,dA_Converter.trig,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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001283/0.2455, allocations: 1.191 MB / 423 MB, free: 2.781 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008276/0.2463, allocations: 0.5438 MB / 423.6 MB, free: 2.203 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.2463, allocations: 4.188 kB / 423.6 MB, free: 2.199 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004956/0.2468, allocations: 398.6 kB / 424 MB, free: 1.785 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007005/0.2475, allocations: 146.5 kB / 424.1 MB, free: 1.652 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003694/0.2512, allocations: 2.93 MB / 427 MB, free: 14.58 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003493/0.2516, allocations: 0.7444 MB / 427.8 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001681/0.2518, allocations: 49.91 kB / 427.8 MB, free: 13.76 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001258/0.2519, allocations: 71.41 kB / 427.9 MB, free: 13.69 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2519, allocations: 0 / 427.9 MB, free: 13.69 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.392/0.6439, allocations: 6.57 MB / 434.5 MB, free: 7.293 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.156/8.8, allocations: 7.938 kB / 434.5 MB, free: 7.285 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_AD_DA_conversion.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1)