Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001125/0.001125, allocations: 109.5 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001472/0.001472, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 227.4 MB / 246.9 MB, free: 8.965 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 56.81 kB / 306.9 MB, free: 0.7812 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09025/0.09144, allocations: 50.54 MB / 357.4 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003444/0.09492, allocations: 2.439 MB / 359.9 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00119/0.09614, allocations: 0.7441 MB / 360.6 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.952e-05/0.09624, allocations: 7.938 kB / 360.6 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001446/0.09642, allocations: 15.84 kB / 360.6 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001045/0.09653, allocations: 43.62 kB / 360.7 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002965/0.09684, allocations: 91.84 kB / 360.8 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002379/0.09708, allocations: 247 kB / 361 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001956/0.09729, allocations: 98.92 kB / 361.1 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000224/0.09752, allocations: 115.6 kB / 361.2 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001348/0.09767, allocations: 115.5 kB / 361.3 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.574e-05/0.09771, allocations: 16 kB / 361.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.789e-05/0.09779, allocations: 16 kB / 361.4 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.563e-05/0.09785, allocations: 47.83 kB / 361.4 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001184/0.09797, allocations: 115.4 kB / 361.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000214/0.09819, allocations: 207.8 kB / 361.7 MB, free: 9.922 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.0982, allocations: 0 / 361.7 MB, free: 9.922 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.21e-07/0.09821, allocations: 0 / 361.7 MB, free: 9.922 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.09822, allocations: 4 kB / 361.7 MB, free: 9.918 MB / 302.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.0009761/0.0992, allocations: 0.6794 MB / 362.4 MB, free: 9.168 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.219e-05/0.09924, allocations: 8.031 kB / 362.4 MB, free: 9.16 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001949/0.09944, allocations: 36.64 kB / 362.5 MB, free: 9.125 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002601/0.09971, allocations: 243.9 kB / 362.7 MB, free: 8.848 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.152e-05/0.09979, allocations: 50.27 kB / 362.7 MB, free: 8.793 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.336e-05/0.09984, allocations: 20.38 kB / 362.8 MB, free: 8.773 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006076/0.1004, allocations: 260 kB / 363 MB, free: 8.512 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.1005, allocations: 0 / 363 MB, free: 8.512 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.94e-05/0.1005, allocations: 11.94 kB / 363 MB, free: 8.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.1005, allocations: 4 kB / 363 MB, free: 8.496 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005019/0.101, allocations: 208.2 kB / 363.2 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001284/0.1023, allocations: 0.7563 MB / 364 MB, free: 7.473 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000569/0.1029, allocations: 291.2 kB / 364.3 MB, free: 7.176 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004186/0.1033, allocations: 229.9 kB / 364.5 MB, free: 6.949 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.894e-05/0.1034, allocations: 0 / 364.5 MB, free: 6.949 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005064/0.1039, allocations: 322.4 kB / 364.8 MB, free: 6.605 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.413e-06/0.1039, allocations: 0 / 364.8 MB, free: 6.605 MB / 302.1 MB Notification: Performance of matching and sorting (n=31): time 0.001165/0.1051, allocations: 0.5695 MB / 365.4 MB, free: 6.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001058/0.1052, allocations: 207.8 kB / 365.6 MB, free: 5.773 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001686/0.1054, allocations: 190.6 kB / 365.8 MB, free: 5.574 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.469e-05/0.1054, allocations: 37.69 kB / 365.8 MB, free: 5.531 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.248e-05/0.1055, allocations: 128.8 kB / 365.9 MB, free: 5.402 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.687e-05/0.1056, allocations: 82.98 kB / 366 MB, free: 5.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.778e-05/0.1057, allocations: 70.02 kB / 366.1 MB, free: 5.246 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.1058, allocations: 338.8 kB / 366.4 MB, free: 4.906 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002452/0.1061, allocations: 104.6 kB / 366.5 MB, free: 4.801 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002874/0.1064, allocations: 179.2 kB / 366.7 MB, free: 4.605 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005409/0.1069, allocations: 413.4 kB / 367.1 MB, free: 4.152 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.1069, allocations: 0 / 367.1 MB, free: 4.152 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007152/0.1076, allocations: 445 kB / 367.5 MB, free: 3.695 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.815e-05/0.1077, allocations: 97.09 kB / 367.6 MB, free: 3.582 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.526e-05/0.1078, allocations: 3.938 kB / 367.6 MB, free: 3.578 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.1078, allocations: 4 kB / 367.6 MB, free: 3.574 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001868/0.108, allocations: 36.02 kB / 367.7 MB, free: 3.539 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.108, allocations: 11.94 kB / 367.7 MB, free: 3.527 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001911/0.1082, allocations: 31.73 kB / 367.7 MB, free: 3.496 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.616e-05/0.1082, allocations: 16 kB / 367.7 MB, free: 3.48 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.0002413/0.1085, allocations: 231.8 kB / 368 MB, free: 3.234 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.717e-05/0.1085, allocations: 23.81 kB / 368 MB, free: 3.211 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.237e-05/0.1086, allocations: 30.58 kB / 368 MB, free: 3.176 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.1086, allocations: 4 kB / 368 MB, free: 3.172 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.1086, allocations: 0 / 368 MB, free: 3.172 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.1086, allocations: 0 / 368 MB, free: 3.172 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001388/0.11, allocations: 0.9318 MB / 368.9 MB, free: 2.168 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.11, allocations: 3.938 kB / 368.9 MB, free: 2.164 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000114/0.1101, allocations: 27.92 kB / 369 MB, free: 2.137 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.1101, allocations: 3.984 kB / 369 MB, free: 2.133 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.841e-05/0.1102, allocations: 11.98 kB / 369 MB, free: 2.121 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.758e-06/0.1102, allocations: 8.031 kB / 369 MB, free: 2.113 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.1102, allocations: 0 / 369 MB, free: 2.113 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009196/0.1111, allocations: 0.6144 MB / 369.6 MB, free: 1.469 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.362e-05/0.1112, allocations: 100.8 kB / 369.7 MB, free: 1.352 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.309e-05/0.1113, allocations: 16 kB / 369.7 MB, free: 1.336 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002293/0.1115, allocations: 23.97 kB / 369.7 MB, free: 1.312 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.996e-05/0.1116, allocations: 23.97 kB / 369.8 MB, free: 1.289 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.495e-05/0.1116, allocations: 4 kB / 369.8 MB, free: 1.285 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001118/0.1117, allocations: 147.1 kB / 369.9 MB, free: 1.141 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1118, allocations: 4.188 kB / 369.9 MB, free: 1.137 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003354/0.1121, allocations: 75.84 kB / 370 MB, free: 1.062 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.0001649/0.1123, allocations: 132.9 kB / 370.1 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008134/0.1131, allocations: 0.5331 MB / 370.7 MB, free: 360 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1131, allocations: 0 / 370.7 MB, free: 360 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1308/0.2439, allocations: 395.1 kB / 371 MB, free: 20.42 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008582/0.2448, allocations: 129.9 kB / 371.2 MB, free: 20.42 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009913/0.2458, allocations: 0.6324 MB / 371.8 MB, free: 20.11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001696/0.246, allocations: 0.7484 MB / 372.6 MB, free: 19.41 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.743e-05/0.246, allocations: 22.7 kB / 372.6 MB, free: 19.4 MB / 302.1 MB Notification: Performance of SimCode: time 6.82e-07/0.246, allocations: 0 / 372.6 MB, free: 19.4 MB / 302.1 MB Notification: Performance of Templates: time 0.005372/0.2514, allocations: 3.112 MB / 375.7 MB, free: 19.25 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches