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.00125/0.00125, allocations: 110 kB / 18.25 MB, free: 4.898 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.001273/0.001273, allocations: 195.5 kB / 19.18 MB, free: 3.977 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.592/1.592, allocations: 205.1 MB / 225.1 MB, free: 12.29 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.001231/0.001231, allocations: 63.84 kB / 281.3 MB, free: 3.16 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1014, allocations: 46.62 MB / 328 MB, free: 4.469 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.004513/0.106, allocations: 2.327 MB / 330.3 MB, free: 2.117 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001713/0.1078, allocations: 0.7059 MB / 331 MB, free: 1.402 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000233/0.108, allocations: 4 kB / 331 MB, free: 1.398 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002126/0.1083, allocations: 35.66 kB / 331 MB, free: 1.363 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001845/0.1085, allocations: 51.48 kB / 331.1 MB, free: 1.312 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004315/0.1089, allocations: 91.77 kB / 331.2 MB, free: 1.223 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004328/0.1094, allocations: 271 kB / 331.4 MB, free: 0.957 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000289/0.1097, allocations: 111 kB / 331.5 MB, free: 0.8477 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002769/0.11, allocations: 111.6 kB / 331.6 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002353/0.1102, allocations: 119.5 kB / 331.8 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.581e-05/0.1103, allocations: 27.94 kB / 331.8 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.731e-05/0.1104, allocations: 20 kB / 331.8 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.751e-05/0.1105, allocations: 55.83 kB / 331.9 MB, free: 0.5195 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001607/0.1106, allocations: 119.3 kB / 332 MB, free: 412 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000363/0.111, allocations: 271.4 kB / 332.2 MB, free: 140 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.111, allocations: 0 / 332.2 MB, free: 140 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.111, allocations: 0 / 332.2 MB, free: 140 kB / 270.1 MB Notification: Performance of Transformations before backend: time 1.166e-05/0.111, allocations: 0 / 332.2 MB, free: 140 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.001249/0.1123, allocations: 0.6792 MB / 332.9 MB, free: 15.39 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/0.1124, allocations: 12.03 kB / 332.9 MB, free: 15.38 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.1125, allocations: 24.66 kB / 333 MB, free: 15.35 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003234/0.1128, allocations: 236.7 kB / 333.2 MB, free: 15.08 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.653e-05/0.1129, allocations: 50.25 kB / 333.2 MB, free: 15.03 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.693e-05/0.1129, allocations: 24.38 kB / 333.3 MB, free: 15 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006095/0.1136, allocations: 260 kB / 333.5 MB, free: 14.75 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/0.1136, allocations: 7.984 kB / 333.5 MB, free: 14.74 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.929e-05/0.1136, allocations: 4 kB / 333.5 MB, free: 14.73 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.1136, allocations: 4 kB / 333.5 MB, free: 14.73 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005353/0.1142, allocations: 208.3 kB / 333.7 MB, free: 14.53 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001463/0.1157, allocations: 0.7677 MB / 334.5 MB, free: 13.7 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006045/0.1163, allocations: 295.2 kB / 334.8 MB, free: 13.4 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004397/0.1167, allocations: 224.9 kB / 335 MB, free: 13.18 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.283e-05/0.1168, allocations: 4 kB / 335 MB, free: 13.17 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005371/0.1173, allocations: 320.3 kB / 335.3 MB, free: 12.83 MB / 286.1 MB Notification: Performance of pre-optimization done (n=31): time 2.665e-06/0.1173, allocations: 0 / 335.3 MB, free: 12.83 MB / 286.1 MB Notification: Performance of matching and sorting (n=31): time 0.001307/0.1186, allocations: 0.5747 MB / 335.9 MB, free: 12.23 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00012/0.1188, allocations: 199.9 kB / 336.1 MB, free: 12 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000186/0.119, allocations: 179.1 kB / 336.3 MB, free: 11.81 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.711e-05/0.119, allocations: 37.7 kB / 336.3 MB, free: 11.77 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.885e-05/0.1191, allocations: 140.6 kB / 336.4 MB, free: 11.63 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.774e-05/0.1192, allocations: 75.09 kB / 336.5 MB, free: 11.55 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/0.1193, allocations: 66.02 kB / 336.6 MB, free: 11.48 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.1195, allocations: 342.8 kB / 336.9 MB, free: 11.14 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002436/0.1197, allocations: 104.6 kB / 337 MB, free: 11.04 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002733/0.12, allocations: 175.1 kB / 337.2 MB, free: 10.84 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005593/0.1206, allocations: 413.4 kB / 337.6 MB, free: 10.39 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.1206, allocations: 4.031 kB / 337.6 MB, free: 10.39 MB / 286.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007719/0.1213, allocations: 434.2 kB / 338 MB, free: 9.938 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.527e-05/0.1214, allocations: 97.09 kB / 338.1 MB, free: 9.824 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.1215, allocations: 3.938 kB / 338.1 MB, free: 9.82 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.877e-05/0.1215, allocations: 4 kB / 338.1 MB, free: 9.816 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001935/0.1217, allocations: 44 kB / 338.2 MB, free: 9.773 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.1217, allocations: 4 kB / 338.2 MB, free: 9.77 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000213/0.1219, allocations: 35.67 kB / 338.2 MB, free: 9.734 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.604e-05/0.122, allocations: 16 kB / 338.2 MB, free: 9.719 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.0002386/0.1222, allocations: 235.8 kB / 338.5 MB, free: 9.465 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.727e-05/0.1223, allocations: 31.72 kB / 338.5 MB, free: 9.434 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.44e-05/0.1223, allocations: 22.59 kB / 338.5 MB, free: 9.41 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.1224, allocations: 4 kB / 338.5 MB, free: 9.406 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.351e-06/0.1224, allocations: 4.125 kB / 338.5 MB, free: 9.402 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-06/0.1224, allocations: 3.984 kB / 338.5 MB, free: 9.398 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001429/0.1238, allocations: 0.9357 MB / 339.5 MB, free: 8.391 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.1238, allocations: 0 / 339.5 MB, free: 8.391 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001174/0.1239, allocations: 23.92 kB / 339.5 MB, free: 8.367 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.124, allocations: 0 / 339.5 MB, free: 8.367 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.892e-05/0.124, allocations: 20.03 kB / 339.5 MB, free: 8.348 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.594e-06/0.124, allocations: 0 / 339.5 MB, free: 8.348 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.124, allocations: 0 / 339.5 MB, free: 8.348 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009761/0.125, allocations: 0.6203 MB / 340.1 MB, free: 7.695 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.223e-05/0.1251, allocations: 96.86 kB / 340.2 MB, free: 7.582 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.153e-05/0.1252, allocations: 15.98 kB / 340.2 MB, free: 7.566 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002223/0.1254, allocations: 19.98 kB / 340.2 MB, free: 7.547 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.818e-05/0.1255, allocations: 23.97 kB / 340.3 MB, free: 7.523 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.703e-05/0.1256, allocations: 12 kB / 340.3 MB, free: 7.512 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001178/0.1257, allocations: 128.2 kB / 340.4 MB, free: 7.387 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1257, allocations: 8 kB / 340.4 MB, free: 7.379 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003829/0.1261, allocations: 75.84 kB / 340.5 MB, free: 7.305 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.0002001/0.1263, allocations: 133 kB / 340.6 MB, free: 7.16 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008983/0.1272, allocations: 0.5702 MB / 341.2 MB, free: 6.555 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.1272, allocations: 0 / 341.2 MB, free: 6.555 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005231/0.1277, allocations: 398.6 kB / 341.6 MB, free: 6.141 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007476/0.1285, allocations: 146.8 kB / 341.7 MB, free: 6 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001086/0.1296, allocations: 0.558 MB / 342.3 MB, free: 5.41 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003143/0.1299, allocations: 0.7522 MB / 343 MB, free: 4.633 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.449e-05/0.13, allocations: 23.44 kB / 343.1 MB, free: 4.609 MB / 286.1 MB Notification: Performance of SimCode: time 2.01e-07/0.13, allocations: 0 / 343.1 MB, free: 4.609 MB / 286.1 MB Notification: Performance of Templates: time 0.006478/0.1365, allocations: 3.096 MB / 346.2 MB, free: 1.52 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/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