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.001347/0.001347, allocations: 111.9 kB / 17.28 MB, free: 6.219 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.001114/0.001114, allocations: 185.3 kB / 18.2 MB, free: 5.301 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.443/1.443, allocations: 205.1 MB / 224.1 MB, free: 12.44 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.001138/0.001138, allocations: 47.92 kB / 280.2 MB, free: 3.406 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09331/0.09446, allocations: 46.63 MB / 326.9 MB, free: 4.699 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003414/0.09792, allocations: 2.382 MB / 329.3 MB, free: 2.297 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001057/0.09899, allocations: 0.7021 MB / 330 MB, free: 1.586 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.172e-05/0.0991, allocations: 4 kB / 330 MB, free: 1.582 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001505/0.09926, allocations: 23.78 kB / 330 MB, free: 1.559 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 9.94e-05/0.09937, allocations: 47.61 kB / 330 MB, free: 1.512 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002741/0.09965, allocations: 75.86 kB / 330.1 MB, free: 1.438 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002865/0.09995, allocations: 275 kB / 330.4 MB, free: 1.168 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002253/0.1002, allocations: 111 kB / 330.5 MB, free: 1.059 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000174/0.1004, allocations: 111.6 kB / 330.6 MB, free: 0.9492 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001444/0.1005, allocations: 119.5 kB / 330.7 MB, free: 0.832 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.853e-05/0.1006, allocations: 27.94 kB / 330.7 MB, free: 0.8047 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.832e-05/0.1006, allocations: 24 kB / 330.8 MB, free: 0.7812 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.589e-05/0.1007, allocations: 47.84 kB / 330.8 MB, free: 0.7344 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001229/0.1008, allocations: 123.4 kB / 330.9 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002604/0.1011, allocations: 263.4 kB / 331.2 MB, free: 364 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.1011, allocations: 11.94 kB / 331.2 MB, free: 352 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1011, allocations: 0 / 331.2 MB, free: 352 kB / 270.1 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.1011, allocations: 0 / 331.2 MB, free: 352 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.0009656/0.1021, allocations: 0.6831 MB / 331.9 MB, free: 15.59 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.1021, allocations: 8.031 kB / 331.9 MB, free: 15.58 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.159e-05/0.1022, allocations: 54.73 kB / 331.9 MB, free: 15.52 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.767e-05/0.1023, allocations: 28.66 kB / 332 MB, free: 15.49 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002393/0.1025, allocations: 232.7 kB / 332.2 MB, free: 15.23 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.92e-05/0.1026, allocations: 50.25 kB / 332.2 MB, free: 15.17 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.406e-05/0.1026, allocations: 20.38 kB / 332.3 MB, free: 15.15 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005569/0.1032, allocations: 264 kB / 332.5 MB, free: 14.89 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.1032, allocations: 4 kB / 332.5 MB, free: 14.89 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.45e-05/0.1032, allocations: 8 kB / 332.5 MB, free: 14.88 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.1032, allocations: 4 kB / 332.5 MB, free: 14.88 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004566/0.1037, allocations: 204.3 kB / 332.7 MB, free: 14.68 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001143/0.1049, allocations: 0.76 MB / 333.5 MB, free: 13.85 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005228/0.1054, allocations: 295.2 kB / 333.8 MB, free: 13.55 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003836/0.1058, allocations: 225 kB / 334 MB, free: 13.33 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.735e-05/0.1058, allocations: 0 / 334 MB, free: 13.33 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000462/0.1063, allocations: 316.3 kB / 334.3 MB, free: 12.99 MB / 286.1 MB Notification: Performance of pre-optimization done (n=31): time 1.433e-06/0.1063, allocations: 0 / 334.3 MB, free: 12.99 MB / 286.1 MB Notification: Performance of matching and sorting (n=31): time 0.001067/0.1074, allocations: 0.5825 MB / 334.9 MB, free: 12.39 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.365e-05/0.1075, allocations: 199.9 kB / 335.1 MB, free: 12.15 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001429/0.1076, allocations: 180 kB / 335.3 MB, free: 11.97 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.084e-05/0.1077, allocations: 33.7 kB / 335.3 MB, free: 11.93 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.922e-05/0.1078, allocations: 140.6 kB / 335.4 MB, free: 11.79 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.081e-05/0.1078, allocations: 75.09 kB / 335.5 MB, free: 11.71 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.005e-05/0.1079, allocations: 73.92 kB / 335.6 MB, free: 11.64 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.108, allocations: 330.8 kB / 335.9 MB, free: 11.3 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002197/0.1082, allocations: 108.6 kB / 336 MB, free: 11.2 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002534/0.1085, allocations: 175.1 kB / 336.2 MB, free: 11 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004851/0.109, allocations: 421.4 kB / 336.6 MB, free: 10.54 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.109, allocations: 4 kB / 336.6 MB, free: 10.54 MB / 286.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006163/0.1096, allocations: 434.2 kB / 337 MB, free: 10.09 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.022e-05/0.1097, allocations: 101 kB / 337.1 MB, free: 9.973 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.1097, allocations: 0 / 337.1 MB, free: 9.973 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.1097, allocations: 4 kB / 337.1 MB, free: 9.969 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001815/0.1099, allocations: 43.91 kB / 337.2 MB, free: 9.926 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.1099, allocations: 4.094 kB / 337.2 MB, free: 9.922 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001676/0.1101, allocations: 31.83 kB / 337.2 MB, free: 9.891 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.078e-05/0.1101, allocations: 12 kB / 337.2 MB, free: 9.879 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.000195/0.1104, allocations: 239.8 kB / 337.5 MB, free: 9.621 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.24e-05/0.1104, allocations: 27.66 kB / 337.5 MB, free: 9.594 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.408e-05/0.1105, allocations: 30.59 kB / 337.5 MB, free: 9.562 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.1105, allocations: 4.188 kB / 337.5 MB, free: 9.559 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.1105, allocations: 0 / 337.5 MB, free: 9.559 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.1105, allocations: 7.922 kB / 337.5 MB, free: 9.551 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001205/0.1117, allocations: 0.9241 MB / 338.4 MB, free: 8.555 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.1117, allocations: 0 / 338.4 MB, free: 8.555 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001052/0.1118, allocations: 23.92 kB / 338.5 MB, free: 8.531 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.1118, allocations: 4 kB / 338.5 MB, free: 8.527 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.575e-05/0.1119, allocations: 8 kB / 338.5 MB, free: 8.52 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.1119, allocations: 4.031 kB / 338.5 MB, free: 8.516 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1119, allocations: 4 kB / 338.5 MB, free: 8.512 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008164/0.1127, allocations: 0.6166 MB / 339.1 MB, free: 7.863 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.995e-05/0.1128, allocations: 96.86 kB / 339.2 MB, free: 7.75 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.418e-05/0.1128, allocations: 15.98 kB / 339.2 MB, free: 7.734 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002106/0.113, allocations: 27.98 kB / 339.2 MB, free: 7.707 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.625e-05/0.1131, allocations: 19.97 kB / 339.3 MB, free: 7.688 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.539e-05/0.1131, allocations: 15.94 kB / 339.3 MB, free: 7.672 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.848e-05/0.1132, allocations: 135.2 kB / 339.4 MB, free: 7.539 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1132, allocations: 0 / 339.4 MB, free: 7.539 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003074/0.1135, allocations: 79.84 kB / 339.5 MB, free: 7.461 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.001106/0.1147, allocations: 1.171 MB / 340.7 MB, free: 6.242 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007716/0.1154, allocations: 0.5729 MB / 341.2 MB, free: 5.633 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.1155, allocations: 0 / 341.2 MB, free: 5.633 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004395/0.1159, allocations: 402.5 kB / 341.6 MB, free: 5.215 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006478/0.1166, allocations: 140.6 kB / 341.8 MB, free: 5.078 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003228/0.1198, allocations: 2.989 MB / 344.7 MB, free: 1.969 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002538/0.1201, allocations: 0.7485 MB / 345.5 MB, free: 1.195 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001393/0.1202, allocations: 53.83 kB / 345.5 MB, free: 1.145 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001003/0.1203, allocations: 67.41 kB / 345.6 MB, free: 1.078 MB / 286.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1203, allocations: 0 / 345.6 MB, free: 1.078 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01531/0.1356, allocations: 6.311 MB / 351.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001685/0.1358, allocations: 198.3 kB / 352.1 MB, free: 10.5 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.923/2.058, allocations: 0 / 352.1 MB, free: 10.5 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/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) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat","/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","../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