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: 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_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_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009459/0.0009455, allocations: 95.88 kB / 16.95 MB, free: 6.457 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.001035/0.001035, allocations: 182.5 kB / 17.84 MB, free: 6.008 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.577/1.577, 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.0005233/0.0005234, allocations: 12 kB / 280.8 MB, free: 3.738 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1348, allocations: 47.57 MB / 328.3 MB, free: 4.09 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003195/0.1381, allocations: 1.959 MB / 330.3 MB, free: 2.113 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001681/0.1398, allocations: 0.6752 MB / 331 MB, free: 1.43 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002156/0.14, allocations: 7.938 kB / 331 MB, free: 1.422 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000154/0.1402, allocations: 19.84 kB / 331 MB, free: 1.402 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001711/0.1404, allocations: 55.48 kB / 331.1 MB, free: 1.348 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004336/0.1408, allocations: 55.94 kB / 331.1 MB, free: 1.293 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003582/0.1412, allocations: 246.9 kB / 331.4 MB, free: 1.051 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002727/0.1415, allocations: 89.2 kB / 331.4 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003106/0.1418, allocations: 91.69 kB / 331.5 MB, free: 0.8789 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002021/0.142, allocations: 87.59 kB / 331.6 MB, free: 0.793 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.422e-05/0.1421, allocations: 12 kB / 331.6 MB, free: 0.7812 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.122e-05/0.1421, allocations: 12 kB / 331.6 MB, free: 0.7695 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.075e-05/0.1422, allocations: 35.84 kB / 331.7 MB, free: 0.7344 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.297e-05/0.1423, allocations: 65.58 kB / 331.7 MB, free: 0.6641 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003665/0.1426, allocations: 203.7 kB / 331.9 MB, free: 476 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.1427, allocations: 0 / 331.9 MB, free: 476 kB / 270.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1427, allocations: 4 kB / 331.9 MB, free: 472 kB / 270.1 MB Notification: Performance of Transformations before backend: time 1.393e-05/0.1427, allocations: 0 / 331.9 MB, free: 472 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.001199/0.1439, allocations: 0.6402 MB / 332.6 MB, free: 15.75 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.586e-05/0.144, allocations: 8.031 kB / 332.6 MB, free: 15.74 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001019/0.1441, allocations: 27.62 kB / 332.6 MB, free: 15.71 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003549/0.1445, allocations: 243.3 kB / 332.9 MB, free: 15.44 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001017/0.1446, allocations: 49.66 kB / 332.9 MB, free: 15.38 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.954e-05/0.1446, allocations: 16 kB / 332.9 MB, free: 15.37 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006448/0.1453, allocations: 268.1 kB / 333.2 MB, free: 15.1 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.66e-05/0.1453, allocations: 0 / 333.2 MB, free: 15.1 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.065e-05/0.1453, allocations: 4 kB / 333.2 MB, free: 15.1 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.1454, allocations: 4 kB / 333.2 MB, free: 15.09 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005804/0.146, allocations: 220.2 kB / 333.4 MB, free: 14.88 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001424/0.1474, allocations: 0.7795 MB / 334.2 MB, free: 14.04 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005963/0.148, allocations: 299.4 kB / 334.5 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005162/0.1485, allocations: 233.4 kB / 334.7 MB, free: 13.5 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.787e-05/0.1486, allocations: 4 kB / 334.7 MB, free: 13.5 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005308/0.1491, allocations: 325.4 kB / 335 MB, free: 13.15 MB / 286.1 MB Notification: Performance of pre-optimization done (n=31): time 1.833e-06/0.1491, allocations: 0 / 335 MB, free: 13.15 MB / 286.1 MB Notification: Performance of matching and sorting (n=31): time 0.001164/0.1503, allocations: 0.5915 MB / 335.6 MB, free: 12.54 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000129/0.1504, allocations: 203.9 kB / 335.8 MB, free: 12.3 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001899/0.1506, allocations: 183.2 kB / 336 MB, free: 12.11 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.418e-05/0.1507, allocations: 33.7 kB / 336 MB, free: 12.07 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001321/0.1508, allocations: 136.8 kB / 336.2 MB, free: 11.94 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.825e-05/0.1509, allocations: 78.94 kB / 336.2 MB, free: 11.86 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.526e-05/0.151, allocations: 7.938 kB / 336.2 MB, free: 11.85 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.1511, allocations: 338.8 kB / 336.6 MB, free: 11.51 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000244/0.1513, allocations: 120.6 kB / 336.7 MB, free: 11.39 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002598/0.1516, allocations: 171.3 kB / 336.9 MB, free: 11.2 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002981/0.1519, allocations: 217.8 kB / 337.1 MB, free: 10.97 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.152, allocations: 0 / 337.1 MB, free: 10.97 MB / 286.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007197/0.1527, allocations: 462.2 kB / 337.5 MB, free: 10.49 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.739e-05/0.1528, allocations: 97.09 kB / 337.6 MB, free: 10.38 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.1528, allocations: 0 / 337.6 MB, free: 10.38 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.1528, allocations: 4 kB / 337.6 MB, free: 10.38 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001989/0.153, allocations: 44 kB / 337.7 MB, free: 10.33 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.295e-05/0.153, allocations: 7.938 kB / 337.7 MB, free: 10.32 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002838/0.1533, allocations: 39.73 kB / 337.7 MB, free: 10.29 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.154e-05/0.1534, allocations: 8 kB / 337.7 MB, free: 10.28 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.0002653/0.1536, allocations: 244.8 kB / 338 MB, free: 10.02 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.38e-05/0.1537, allocations: 19.81 kB / 338 MB, free: 10 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.243e-05/0.1538, allocations: 22.66 kB / 338 MB, free: 9.973 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.1538, allocations: 4 kB / 338 MB, free: 9.969 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.1538, allocations: 192 / 338 MB, free: 9.969 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.1538, allocations: 3.984 kB / 338 MB, free: 9.965 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001592/0.1554, allocations: 0.9512 MB / 339 MB, free: 8.941 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.1554, allocations: 4 kB / 339 MB, free: 8.938 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001215/0.1555, allocations: 31.91 kB / 339 MB, free: 8.906 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.1556, allocations: 0 / 339 MB, free: 8.906 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.829e-05/0.1556, allocations: 15.95 kB / 339 MB, free: 8.891 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.1556, allocations: 3.938 kB / 339 MB, free: 8.887 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.1556, allocations: 0 / 339 MB, free: 8.887 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001261/0.1569, allocations: 0.6322 MB / 339.6 MB, free: 8.223 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.857e-05/0.157, allocations: 100.8 kB / 339.7 MB, free: 8.105 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.386e-05/0.1571, allocations: 19.94 kB / 339.8 MB, free: 8.086 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002131/0.1573, allocations: 27.98 kB / 339.8 MB, free: 8.059 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.354e-05/0.1574, allocations: 19.97 kB / 339.8 MB, free: 8.039 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.081e-05/0.1574, allocations: 15.98 kB / 339.8 MB, free: 8.023 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001157/0.1575, allocations: 131.2 kB / 340 MB, free: 7.895 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1575, allocations: 0 / 340 MB, free: 7.895 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003618/0.1579, allocations: 75.84 kB / 340 MB, free: 7.82 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.0001916/0.1581, allocations: 128.8 kB / 340.2 MB, free: 7.68 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008279/0.1589, allocations: 0.5526 MB / 340.7 MB, free: 7.09 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.159, allocations: 192 / 340.7 MB, free: 7.09 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004809/0.1594, allocations: 414.8 kB / 341.1 MB, free: 6.66 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006954/0.1601, allocations: 124.2 kB / 341.2 MB, free: 6.539 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001062/0.1612, allocations: 0.6054 MB / 341.8 MB, free: 5.91 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002872/0.1615, allocations: 0.7409 MB / 342.6 MB, free: 5.145 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001693/0.1617, allocations: 49.89 kB / 342.6 MB, free: 5.098 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.783e-05/0.1618, allocations: 27.44 kB / 342.7 MB, free: 5.07 MB / 286.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1618, allocations: 0 / 342.7 MB, free: 5.07 MB / 286.1 MB Notification: Performance of Templates: time 0.009532/0.1713, allocations: 3.836 MB / 346.5 MB, free: 1.242 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile (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 & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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