Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001326/0.001326, allocations: 105.8 kB / 17.59 MB, free: 5.445 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.001311/0.001311, allocations: 191.3 kB / 18.52 MB, free: 4.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 222.9 MB / 242.2 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001069/0.001069, allocations: 51.17 kB / 301.3 MB, free: 5.824 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08783/0.08892, allocations: 49.45 MB / 350.7 MB, free: 4.371 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003771/0.09273, allocations: 2.353 MB / 353.1 MB, free: 1.996 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001277/0.09404, allocations: 0.6699 MB / 353.8 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001664/0.09423, allocations: 4 kB / 353.8 MB, free: 1.316 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001713/0.09444, allocations: 27.72 kB / 353.8 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001587/0.09461, allocations: 55.48 kB / 353.8 MB, free: 1.234 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003758/0.09499, allocations: 91.77 kB / 353.9 MB, free: 1.145 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003676/0.09537, allocations: 263 kB / 354.2 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002503/0.09564, allocations: 122.9 kB / 354.3 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002402/0.09589, allocations: 111.7 kB / 354.4 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001814/0.09608, allocations: 115.5 kB / 354.5 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.661e-05/0.09614, allocations: 24 kB / 354.5 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.984e-05/0.0962, allocations: 20 kB / 354.6 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.315e-05/0.09628, allocations: 55.83 kB / 354.6 MB, free: 452 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001473/0.09643, allocations: 115.4 kB / 354.7 MB, free: 336 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003076/0.09675, allocations: 283.3 kB / 355 MB, free: 52 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.09676, allocations: 0 / 355 MB, free: 52 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.09677, allocations: 4 kB / 355 MB, free: 48 kB / 286.1 MB Notification: Performance of Transformations before backend: time 8.747e-06/0.09678, allocations: 0 / 355 MB, free: 48 kB / 286.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.001118/0.0979, allocations: 0.6704 MB / 355.7 MB, free: 15.31 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.09795, allocations: 8.031 kB / 355.7 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.033e-05/0.09803, allocations: 28.66 kB / 355.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002736/0.09832, allocations: 237.6 kB / 356 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.252e-05/0.09841, allocations: 46.25 kB / 356 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.011e-05/0.09846, allocations: 20.38 kB / 356 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000641/0.0991, allocations: 256.3 kB / 356.3 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.09913, allocations: 3.938 kB / 356.3 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.297e-05/0.09917, allocations: 11.98 kB / 356.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.303e-05/0.09919, allocations: 7.984 kB / 356.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005086/0.0997, allocations: 212 kB / 356.5 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001377/0.1011, allocations: 0.7641 MB / 357.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005977/0.1017, allocations: 302.5 kB / 357.6 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004199/0.1021, allocations: 221 kB / 357.8 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.136e-05/0.1022, allocations: 4 kB / 357.8 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005121/0.1027, allocations: 320.8 kB / 358.1 MB, free: 12.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 2.836e-06/0.1027, allocations: 3.938 kB / 358.1 MB, free: 12.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=31): time 0.001201/0.1039, allocations: 0.5708 MB / 358.7 MB, free: 12.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/0.104, allocations: 199.9 kB / 358.9 MB, free: 11.92 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001585/0.1042, allocations: 179.9 kB / 359 MB, free: 11.74 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.839e-05/0.1042, allocations: 37.7 kB / 359.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.172e-05/0.1043, allocations: 136.7 kB / 359.2 MB, free: 11.56 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.124e-05/0.1044, allocations: 79 kB / 359.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/0.1045, allocations: 70.02 kB / 359.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.1046, allocations: 334.8 kB / 359.7 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002422/0.1049, allocations: 104.6 kB / 359.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002738/0.1052, allocations: 179.2 kB / 360 MB, free: 10.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005382/0.1057, allocations: 410.8 kB / 360.4 MB, free: 10.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.1057, allocations: 0 / 360.4 MB, free: 10.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006982/0.1064, allocations: 434.2 kB / 360.8 MB, free: 9.871 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.127e-05/0.1065, allocations: 93.09 kB / 360.9 MB, free: 9.762 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.767e-06/0.1065, allocations: 8.219 kB / 360.9 MB, free: 9.754 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.865e-05/0.1066, allocations: 7.938 kB / 360.9 MB, free: 9.746 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001922/0.1068, allocations: 47.84 kB / 360.9 MB, free: 9.699 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.1068, allocations: 4 kB / 360.9 MB, free: 9.695 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001948/0.107, allocations: 35.77 kB / 361 MB, free: 9.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.29e-05/0.107, allocations: 19.94 kB / 361 MB, free: 9.641 MB / 302.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.0002253/0.1073, allocations: 239.8 kB / 361.2 MB, free: 9.383 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.969e-05/0.1073, allocations: 23.72 kB / 361.3 MB, free: 9.359 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.182e-05/0.1074, allocations: 26.59 kB / 361.3 MB, free: 9.332 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.1074, allocations: 4 kB / 361.3 MB, free: 9.328 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.1074, allocations: 0 / 361.3 MB, free: 9.328 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.483e-06/0.1074, allocations: 3.984 kB / 361.3 MB, free: 9.324 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001372/0.1088, allocations: 0.9317 MB / 362.2 MB, free: 8.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.1088, allocations: 4.031 kB / 362.2 MB, free: 8.316 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001184/0.1089, allocations: 27.92 kB / 362.2 MB, free: 8.289 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.1089, allocations: 0 / 362.2 MB, free: 8.289 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.732e-05/0.109, allocations: 11.98 kB / 362.3 MB, free: 8.277 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.109, allocations: 4 kB / 362.3 MB, free: 8.273 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.109, allocations: 0 / 362.3 MB, free: 8.273 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00091/0.1099, allocations: 0.6128 MB / 362.9 MB, free: 7.629 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.076e-05/0.11, allocations: 92.86 kB / 363 MB, free: 7.52 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.278e-05/0.1101, allocations: 19.98 kB / 363 MB, free: 7.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002213/0.1103, allocations: 19.98 kB / 363 MB, free: 7.48 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.053e-05/0.1104, allocations: 23.97 kB / 363 MB, free: 7.457 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.29e-05/0.1104, allocations: 8 kB / 363 MB, free: 7.449 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000106/0.1105, allocations: 139.2 kB / 363.2 MB, free: 7.312 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.513e-06/0.1105, allocations: 0 / 363.2 MB, free: 7.312 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003542/0.1109, allocations: 83.78 kB / 363.3 MB, free: 7.23 MB / 302.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.0001639/0.1111, allocations: 129.9 kB / 363.4 MB, free: 7.094 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008967/0.112, allocations: 0.5782 MB / 364 MB, free: 6.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.112, allocations: 0 / 364 MB, free: 6.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004981/0.1125, allocations: 398.9 kB / 364.3 MB, free: 6.066 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007107/0.1132, allocations: 145.6 kB / 364.5 MB, free: 5.938 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001048/0.1143, allocations: 0.5617 MB / 365.1 MB, free: 5.34 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003/0.1146, allocations: 0.7444 MB / 365.8 MB, free: 4.566 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.878e-05/0.1147, allocations: 19.44 kB / 365.8 MB, free: 4.547 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1147, allocations: 4 kB / 365.8 MB, free: 4.543 MB / 302.1 MB Notification: Performance of Templates: time 0.005369/0.12, allocations: 3.089 MB / 368.9 MB, free: 1.484 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/AD_DA_conversion/AD_DA_conversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches