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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001685/0.001685, allocations: 93.33 kB / 16.95 MB, free: 6.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001877/0.001878, allocations: 176.8 kB / 17.83 MB, free: 5.723 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.914/1.914, allocations: 205.4 MB / 224 MB, free: 13.15 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004768/0.0004769, allocations: 12 kB / 280.9 MB, free: 3.637 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1066, allocations: 47.58 MB / 328.5 MB, free: 3.98 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.002927/0.1096, allocations: 1.956 MB / 330.4 MB, free: 2.008 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001422/0.1111, allocations: 0.679 MB / 331.1 MB, free: 1.32 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002052/0.1113, allocations: 4 kB / 331.1 MB, free: 1.316 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001587/0.1115, allocations: 19.84 kB / 331.1 MB, free: 1.297 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001675/0.1117, allocations: 47.55 kB / 331.2 MB, free: 1.25 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000387/0.112, allocations: 67.92 kB / 331.2 MB, free: 1.184 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000365/0.1124, allocations: 231 kB / 331.4 MB, free: 0.957 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002423/0.1127, allocations: 97.19 kB / 331.5 MB, free: 0.8672 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002488/0.1129, allocations: 91.69 kB / 331.6 MB, free: 0.7773 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00019/0.1131, allocations: 91.61 kB / 331.7 MB, free: 0.6875 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.361e-05/0.1132, allocations: 8 kB / 331.7 MB, free: 0.6797 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.534e-05/0.1132, allocations: 12 kB / 331.7 MB, free: 0.668 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.693e-05/0.1133, allocations: 35.83 kB / 331.8 MB, free: 0.6328 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.483e-05/0.1134, allocations: 65.58 kB / 331.8 MB, free: 0.5625 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002629/0.1137, allocations: 203.8 kB / 332 MB, free: 372 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.1137, allocations: 0 / 332 MB, free: 372 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1137, allocations: 0 / 332 MB, free: 372 kB / 270.1 MB Notification: Performance of Transformations before backend: time 1.284e-05/0.1137, allocations: 4 kB / 332 MB, free: 368 kB / 270.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.001187/0.1149, allocations: 0.6441 MB / 332.7 MB, free: 15.64 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.115, allocations: 12.03 kB / 332.7 MB, free: 15.63 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.221e-05/0.1151, allocations: 54.55 kB / 332.8 MB, free: 15.57 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.844e-05/0.1151, allocations: 27.72 kB / 332.8 MB, free: 15.54 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003382/0.1155, allocations: 231.4 kB / 333 MB, free: 15.27 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.538e-05/0.1156, allocations: 53.64 kB / 333.1 MB, free: 15.21 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.318e-05/0.1156, allocations: 20 kB / 333.1 MB, free: 15.2 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006201/0.1163, allocations: 260.2 kB / 333.3 MB, free: 14.94 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.1163, allocations: 0 / 333.3 MB, free: 14.94 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.584e-05/0.1163, allocations: 7.984 kB / 333.3 MB, free: 14.93 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.746e-06/0.1163, allocations: 11.98 kB / 333.4 MB, free: 14.92 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004944/0.1168, allocations: 216.2 kB / 333.6 MB, free: 14.71 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001443/0.1183, allocations: 0.7717 MB / 334.3 MB, free: 13.88 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005967/0.1189, allocations: 315.3 kB / 334.6 MB, free: 13.56 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004217/0.1193, allocations: 229.4 kB / 334.9 MB, free: 13.33 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.7e-05/0.1194, allocations: 4 kB / 334.9 MB, free: 13.33 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005519/0.1199, allocations: 325.4 kB / 335.2 MB, free: 12.98 MB / 286.1 MB Notification: Performance of pre-optimization done (n=31): time 1.473e-06/0.1199, allocations: 0 / 335.2 MB, free: 12.98 MB / 286.1 MB Notification: Performance of matching and sorting (n=31): time 0.001183/0.1211, allocations: 0.5876 MB / 335.8 MB, free: 12.38 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001438/0.1213, allocations: 203.9 kB / 336 MB, free: 12.13 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001834/0.1215, allocations: 187.2 kB / 336.2 MB, free: 11.94 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.656e-05/0.1215, allocations: 37.69 kB / 336.2 MB, free: 11.9 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/0.1216, allocations: 132.8 kB / 336.3 MB, free: 11.77 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.322e-05/0.1217, allocations: 78.98 kB / 336.4 MB, free: 11.69 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.431e-05/0.1217, allocations: 4 kB / 336.4 MB, free: 11.68 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.1219, allocations: 338.8 kB / 336.7 MB, free: 11.34 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002445/0.1222, allocations: 112.6 kB / 336.8 MB, free: 11.23 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003021/0.1225, allocations: 179.3 kB / 337 MB, free: 11.03 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003105/0.1228, allocations: 209.8 kB / 337.2 MB, free: 10.81 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.1228, allocations: 0 / 337.2 MB, free: 10.81 MB / 286.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007369/0.1236, allocations: 470.2 kB / 337.7 MB, free: 10.32 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.235e-05/0.1237, allocations: 97.09 kB / 337.8 MB, free: 10.21 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.1237, allocations: 0 / 337.8 MB, free: 10.21 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.126e-05/0.1237, allocations: 4 kB / 337.8 MB, free: 10.21 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002083/0.1239, allocations: 40.02 kB / 337.8 MB, free: 10.17 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.267e-05/0.1239, allocations: 7.938 kB / 337.8 MB, free: 10.16 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001959/0.1241, allocations: 39.73 kB / 337.9 MB, free: 10.12 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.867e-05/0.1242, allocations: 15.95 kB / 337.9 MB, free: 10.11 MB / 286.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 ($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,$PRE.pulse.T0,pulse.T0,$PRE.pulse.np,pulse.np,pulse.sampling,dA_Converter.trig,$PRE.dA_Converter.vout,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002687/0.1245, allocations: 235.8 kB / 338.1 MB, free: 9.855 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.227e-05/0.1245, allocations: 35.64 kB / 338.2 MB, free: 9.82 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.891e-05/0.1246, allocations: 22.64 kB / 338.2 MB, free: 9.793 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.1246, allocations: 4 kB / 338.2 MB, free: 9.789 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.796e-06/0.1246, allocations: 0 / 338.2 MB, free: 9.789 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.1246, allocations: 0 / 338.2 MB, free: 9.789 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001496/0.1261, allocations: 0.9552 MB / 339.1 MB, free: 8.762 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.1261, allocations: 0 / 339.1 MB, free: 8.762 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001117/0.1263, allocations: 23.92 kB / 339.2 MB, free: 8.738 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.95e-06/0.1263, allocations: 0 / 339.2 MB, free: 8.738 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.569e-05/0.1263, allocations: 19.94 kB / 339.2 MB, free: 8.719 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.1263, allocations: 0 / 339.2 MB, free: 8.719 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1263, allocations: 0 / 339.2 MB, free: 8.719 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001083/0.1274, allocations: 0.6332 MB / 339.8 MB, free: 8.055 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001068/0.1275, allocations: 96.84 kB / 339.9 MB, free: 7.941 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.777e-05/0.1276, allocations: 15.95 kB / 339.9 MB, free: 7.926 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002222/0.1278, allocations: 31.97 kB / 339.9 MB, free: 7.895 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001158/0.128, allocations: 19.97 kB / 340 MB, free: 7.875 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.949e-05/0.128, allocations: 15.98 kB / 340 MB, free: 7.859 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001319/0.1282, allocations: 131.2 kB / 340.1 MB, free: 7.73 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1282, allocations: 0 / 340.1 MB, free: 7.73 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004243/0.1286, allocations: 79.84 kB / 340.2 MB, free: 7.652 MB / 286.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 (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.001555/0.1302, allocations: 1.199 MB / 341.4 MB, free: 6.406 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009615/0.1311, allocations: 0.5445 MB / 341.9 MB, free: 5.828 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.1311, allocations: 0 / 341.9 MB, free: 5.828 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005362/0.1317, allocations: 415.2 kB / 342.3 MB, free: 5.398 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006978/0.1324, allocations: 132.3 kB / 342.5 MB, free: 5.27 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00315/0.1356, allocations: 1.577 MB / 344 MB, free: 3.633 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005115/0.1361, allocations: 0.7448 MB / 344.8 MB, free: 2.863 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002254/0.1363, allocations: 53.89 kB / 344.8 MB, free: 2.809 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001411/0.1365, allocations: 67.41 kB / 344.9 MB, free: 2.742 MB / 286.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1365, allocations: 0 / 344.9 MB, free: 2.742 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02033/0.1568, allocations: 5.85 MB / 350.8 MB, free: 12.89 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001673/0.157, allocations: 187.1 kB / 350.9 MB, free: 12.66 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.108/2.265, allocations: 0 / 350.9 MB, free: 12.66 MB / 302.1 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) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat does not exist to compare? outputFormat=mat