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.001309/0.001309, allocations: 104.5 kB / 17.58 MB, free: 5.426 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.001432/0.001432, allocations: 191.9 kB / 18.5 MB, free: 4.516 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.381/1.381, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.00185/0.00185, allocations: 56.14 kB / 280.7 MB, free: 3.09 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.111, allocations: 46.63 MB / 327.4 MB, free: 4.387 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003541/0.1146, allocations: 2.322 MB / 329.7 MB, free: 2.039 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001115/0.1157, allocations: 0.7137 MB / 330.4 MB, free: 1.316 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.869e-05/0.1158, allocations: 7.938 kB / 330.4 MB, free: 1.309 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001469/0.116, allocations: 35.7 kB / 330.5 MB, free: 1.273 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 9.268e-05/0.1161, allocations: 47.45 kB / 330.5 MB, free: 1.227 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003141/0.1164, allocations: 95.75 kB / 330.6 MB, free: 1.133 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000288/0.1167, allocations: 271 kB / 330.9 MB, free: 0.8672 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002302/0.117, allocations: 107 kB / 331 MB, free: 0.7617 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001711/0.1171, allocations: 115.6 kB / 331.1 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001533/0.1173, allocations: 115.5 kB / 331.2 MB, free: 0.5352 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.8e-05/0.1174, allocations: 27.94 kB / 331.2 MB, free: 0.5078 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.287e-05/0.1174, allocations: 24 kB / 331.2 MB, free: 496 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.226e-05/0.1175, allocations: 47.84 kB / 331.3 MB, free: 448 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001298/0.1176, allocations: 123.4 kB / 331.4 MB, free: 324 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002639/0.1179, allocations: 271.4 kB / 331.7 MB, free: 52 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.391e-06/0.1179, allocations: 0 / 331.7 MB, free: 52 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1179, allocations: 0 / 331.7 MB, free: 52 kB / 270.1 MB Notification: Performance of Transformations before backend: time 1.023e-05/0.1179, allocations: 0 / 331.7 MB, free: 52 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.0009808/0.1189, allocations: 0.6792 MB / 332.4 MB, free: 15.3 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.119, allocations: 12.03 kB / 332.4 MB, free: 15.29 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.072e-05/0.119, allocations: 54.73 kB / 332.4 MB, free: 15.23 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.546e-05/0.1191, allocations: 24.66 kB / 332.4 MB, free: 15.2 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002563/0.1194, allocations: 232.6 kB / 332.7 MB, free: 14.94 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.642e-05/0.1194, allocations: 54.25 kB / 332.7 MB, free: 14.88 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.074e-05/0.1195, allocations: 20.38 kB / 332.7 MB, free: 14.86 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005856/0.1201, allocations: 267.8 kB / 333 MB, free: 14.59 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.1201, allocations: 0 / 333 MB, free: 14.59 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.699e-05/0.1201, allocations: 4 kB / 333 MB, free: 14.59 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.1201, allocations: 4 kB / 333 MB, free: 14.59 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004876/0.1206, allocations: 208.3 kB / 333.2 MB, free: 14.38 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001252/0.1219, allocations: 0.7677 MB / 334 MB, free: 13.55 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005617/0.1225, allocations: 299.1 kB / 334.3 MB, free: 13.25 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000406/0.1229, allocations: 229 kB / 334.5 MB, free: 13.02 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.805e-05/0.1229, allocations: 3.984 kB / 334.5 MB, free: 13.02 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004773/0.1234, allocations: 316.3 kB / 334.8 MB, free: 12.68 MB / 286.1 MB Notification: Performance of pre-optimization done (n=31): time 1.493e-06/0.1234, allocations: 0 / 334.8 MB, free: 12.68 MB / 286.1 MB Notification: Performance of matching and sorting (n=31): time 0.001122/0.1245, allocations: 0.5746 MB / 335.4 MB, free: 12.09 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/0.1247, allocations: 199.9 kB / 335.6 MB, free: 11.85 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001523/0.1248, allocations: 179.1 kB / 335.8 MB, free: 11.66 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.315e-05/0.1249, allocations: 41.7 kB / 335.8 MB, free: 11.62 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.569e-05/0.125, allocations: 132.7 kB / 335.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.134e-05/0.125, allocations: 75.08 kB / 336 MB, free: 11.41 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.371e-05/0.1251, allocations: 69.94 kB / 336.1 MB, free: 11.34 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.1252, allocations: 346.8 kB / 336.4 MB, free: 10.99 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002316/0.1255, allocations: 108.6 kB / 336.5 MB, free: 10.88 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002716/0.1258, allocations: 171 kB / 336.7 MB, free: 10.69 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005125/0.1263, allocations: 409.6 kB / 337.1 MB, free: 10.24 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.1263, allocations: 4 kB / 337.1 MB, free: 10.24 MB / 286.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006464/0.127, allocations: 434.2 kB / 337.5 MB, free: 9.789 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.642e-05/0.127, allocations: 101 kB / 337.6 MB, free: 9.672 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/0.1271, allocations: 4 kB / 337.6 MB, free: 9.668 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.1271, allocations: 0 / 337.6 MB, free: 9.668 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001833/0.1273, allocations: 44 kB / 337.7 MB, free: 9.625 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.766e-06/0.1273, allocations: 4.188 kB / 337.7 MB, free: 9.621 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001726/0.1275, allocations: 35.77 kB / 337.7 MB, free: 9.586 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.107e-05/0.1275, allocations: 15.94 kB / 337.7 MB, free: 9.57 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 (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.0002091/0.1277, allocations: 235.8 kB / 337.9 MB, free: 9.316 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.838e-05/0.1278, allocations: 35.66 kB / 338 MB, free: 9.281 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.738e-05/0.1278, allocations: 34.52 kB / 338 MB, free: 9.246 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.1278, allocations: 0 / 338 MB, free: 9.246 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.251e-06/0.1278, allocations: 4 kB / 338 MB, free: 9.242 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.1278, allocations: 3.984 kB / 338 MB, free: 9.238 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001321/0.1292, allocations: 0.928 MB / 338.9 MB, free: 8.238 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.1292, allocations: 0 / 338.9 MB, free: 8.238 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000111/0.1293, allocations: 23.98 kB / 339 MB, free: 8.215 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.1293, allocations: 4 kB / 339 MB, free: 8.211 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.384e-05/0.1293, allocations: 12.03 kB / 339 MB, free: 8.199 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.1294, allocations: 7.922 kB / 339 MB, free: 8.191 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1294, allocations: 0 / 339 MB, free: 8.191 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000898/0.1303, allocations: 0.6125 MB / 339.6 MB, free: 7.547 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.886e-05/0.1303, allocations: 96.86 kB / 339.7 MB, free: 7.434 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.902e-05/0.1304, allocations: 15.98 kB / 339.7 MB, free: 7.418 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002094/0.1306, allocations: 19.98 kB / 339.7 MB, free: 7.398 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.618e-05/0.1307, allocations: 23.97 kB / 339.8 MB, free: 7.375 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.395e-05/0.1307, allocations: 11.94 kB / 339.8 MB, free: 7.363 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.646e-05/0.1308, allocations: 132.3 kB / 339.9 MB, free: 7.234 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1308, allocations: 4 kB / 339.9 MB, free: 7.23 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003264/0.1312, allocations: 75.84 kB / 340 MB, free: 7.156 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 (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.001275/0.1325, allocations: 1.187 MB / 341.2 MB, free: 5.922 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008348/0.1333, allocations: 0.5772 MB / 341.7 MB, free: 5.309 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1333, allocations: 0 / 341.7 MB, free: 5.309 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004694/0.1338, allocations: 398.6 kB / 342.1 MB, free: 4.895 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006825/0.1345, allocations: 131.5 kB / 342.3 MB, free: 4.77 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003651/0.1381, allocations: 2.915 MB / 345.2 MB, free: 1.727 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003145/0.1385, allocations: 0.7444 MB / 345.9 MB, free: 0.957 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001613/0.1386, allocations: 53.88 kB / 346 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001138/0.1388, allocations: 71.41 kB / 346 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1388, allocations: 4 kB / 346 MB, free: 0.832 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02691/0.1657, allocations: 6.442 MB / 352.5 MB, free: 10.32 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.375/7.541, allocations: 19.88 kB / 352.5 MB, free: 10.3 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_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) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/AD_DA_conversion/AD_DA_conversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches