Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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: translateModel(Modelica.Electrical.Analog.Examples.AD_DA_conversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|aD_Converter.z|pulse.T0|pulse.np",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion") translateModel(Modelica.Electrical.Analog.Examples.AD_DA_conversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|aD_Converter.z|pulse.T0|pulse.np",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002346/0.00235, allocations: 181 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.058/2.058, allocations: 205.2 MB / 219.4 MB, free: 14.22 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001002/0.001002, allocations: 82.72 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.149e-05/3.171e-05, allocations: 4 kB / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09523/0.09528, allocations: 47.57 MB / 369.1 MB, free: 2.207 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3968/0.4921, allocations: 78.07 MB / 447.2 MB, free: 15.1 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002522/0.4924, allocations: 70.14 kB / 447.2 MB, free: 15.06 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02916/0.5216, allocations: 7.109 MB / 454.3 MB, free: 9.18 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.399e-06/0.5217, allocations: 3.984 kB / 454.3 MB, free: 9.176 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.982e-05/0.5217, allocations: 4 kB / 454.3 MB, free: 9.172 MB / 330.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.001104/0.5228, allocations: 0.5859 MB / 454.9 MB, free: 8.543 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.18e-05/0.5229, allocations: 16.02 kB / 454.9 MB, free: 8.527 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.927e-05/0.523, allocations: 23.72 kB / 455 MB, free: 8.504 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005582/0.5235, allocations: 264.7 kB / 455.2 MB, free: 8.219 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001019/0.5237, allocations: 50.39 kB / 455.3 MB, free: 8.172 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.294e-05/0.5237, allocations: 15.12 kB / 455.3 MB, free: 8.16 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006134/0.5244, allocations: 225.8 kB / 455.5 MB, free: 7.996 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.5244, allocations: 0 / 455.5 MB, free: 7.996 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.65e-05/0.5244, allocations: 6.25 kB / 455.5 MB, free: 7.996 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.5245, allocations: 8 kB / 455.5 MB, free: 7.988 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004469/0.5249, allocations: 162.3 kB / 455.7 MB, free: 7.879 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002013/0.5269, allocations: 0.7627 MB / 456.4 MB, free: 7.18 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005875/0.5276, allocations: 264 kB / 456.7 MB, free: 6.988 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004737/0.5281, allocations: 207.2 kB / 456.9 MB, free: 6.852 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.607e-05/0.5281, allocations: 0 / 456.9 MB, free: 6.852 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005753/0.5287, allocations: 305 kB / 457.2 MB, free: 6.57 MB / 330.7 MB Notification: Performance of pre-optimization done (n=31): time 2.194e-06/0.5287, allocations: 3.938 kB / 457.2 MB, free: 6.566 MB / 330.7 MB Notification: Performance of matching and sorting (n=31): time 0.0009286/0.5296, allocations: 396.1 kB / 457.6 MB, free: 6.238 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001587/0.5298, allocations: 228.9 kB / 457.8 MB, free: 5.969 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002331/0.5301, allocations: 159.1 kB / 458 MB, free: 5.828 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.616e-05/0.5301, allocations: 40.89 kB / 458 MB, free: 5.789 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001343/0.5303, allocations: 193.2 kB / 458.2 MB, free: 5.613 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001103/0.5304, allocations: 85.23 kB / 458.3 MB, free: 5.543 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.097e-05/0.5304, allocations: 3.188 kB / 458.3 MB, free: 5.543 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.5306, allocations: 325.6 kB / 458.6 MB, free: 5.223 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002546/0.5309, allocations: 97.92 kB / 458.7 MB, free: 5.148 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003249/0.5312, allocations: 164.4 kB / 458.9 MB, free: 5 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003387/0.5316, allocations: 189.4 kB / 459 MB, free: 4.828 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.793e-06/0.5316, allocations: 4 kB / 459 MB, free: 4.824 MB / 330.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008525/0.5324, allocations: 400.4 kB / 459.4 MB, free: 4.477 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001044/0.5326, allocations: 96.31 kB / 459.5 MB, free: 4.367 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.5e-05/0.5326, allocations: 7.953 kB / 459.5 MB, free: 4.359 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.402e-05/0.5326, allocations: 7.984 kB / 459.5 MB, free: 4.352 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003365/0.533, allocations: 42.92 kB / 459.6 MB, free: 4.312 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.777e-05/0.533, allocations: 4 kB / 459.6 MB, free: 4.309 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003304/0.5333, allocations: 27.83 kB / 459.6 MB, free: 4.285 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.541e-05/0.5334, allocations: 11.44 kB / 459.6 MB, free: 4.277 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.000292/0.5337, allocations: 218.2 kB / 459.8 MB, free: 4.047 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.213e-05/0.5338, allocations: 27.72 kB / 459.9 MB, free: 4.02 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.32e-05/0.5339, allocations: 22.95 kB / 459.9 MB, free: 3.996 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.624e-06/0.5339, allocations: 3.953 kB / 459.9 MB, free: 3.992 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.5339, allocations: 3.938 kB / 459.9 MB, free: 3.988 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.5339, allocations: 4 kB / 459.9 MB, free: 3.984 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001796/0.5357, allocations: 0.9676 MB / 460.9 MB, free: 2.945 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.5358, allocations: 0 / 460.9 MB, free: 2.945 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002332/0.536, allocations: 23.92 kB / 460.9 MB, free: 2.922 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.828e-06/0.536, allocations: 4 kB / 460.9 MB, free: 2.918 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.368e-05/0.5361, allocations: 16.03 kB / 460.9 MB, free: 2.902 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.5361, allocations: 0 / 460.9 MB, free: 2.902 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.5361, allocations: 0 / 460.9 MB, free: 2.902 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001087/0.5372, allocations: 0.5688 MB / 461.5 MB, free: 2.297 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000102/0.5373, allocations: 100.8 kB / 461.6 MB, free: 2.18 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.044e-05/0.5374, allocations: 15.98 kB / 461.6 MB, free: 2.164 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003913/0.5378, allocations: 23.98 kB / 461.6 MB, free: 2.141 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/0.538, allocations: 35.94 kB / 461.7 MB, free: 2.105 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.964e-05/0.538, allocations: 8 kB / 461.7 MB, free: 2.098 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001651/0.5382, allocations: 135.2 kB / 461.8 MB, free: 1.965 MB / 330.7 MB Notification: Performance of sort global known variables: time 4e-07/0.5382, allocations: 0 / 461.8 MB, free: 1.965 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005065/0.5387, allocations: 75.94 kB / 461.9 MB, free: 1.891 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.0002546/0.539, allocations: 140.7 kB / 462 MB, free: 1.742 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009638/0.54, allocations: 0.4951 MB / 462.5 MB, free: 1.211 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.54, allocations: 0 / 462.5 MB, free: 1.211 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006008/0.5406, allocations: 374.7 kB / 462.9 MB, free: 0.8203 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001016/0.5416, allocations: 121 kB / 463 MB, free: 0.7031 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001174/0.5428, allocations: 418.6 kB / 463.4 MB, free: 268 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004314/0.5433, allocations: 0.7525 MB / 464.2 MB, free: 15.48 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/0.5434, allocations: 19.44 kB / 464.2 MB, free: 15.46 MB / 346.7 MB Notification: Performance of SimCode: time 1.032e-06/0.5434, allocations: 0 / 464.2 MB, free: 15.46 MB / 346.7 MB Notification: Performance of Templates: time 0.007894/0.5513, allocations: 3.02 MB / 467.2 MB, free: 12.45 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches