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.00107/0.00107, allocations: 97.66 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001487/0.001487, allocations: 204.2 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.441/1.441, allocations: 227.7 MB / 247.5 MB, free: 11.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002364/0.0002364, allocations: 8 kB / 308.4 MB, free: 0.8047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08867/0.08893, allocations: 51.52 MB / 359.9 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.002565/0.09155, allocations: 2.069 MB / 362 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001313/0.09289, allocations: 0.7324 MB / 362.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001419/0.09305, allocations: 11.94 kB / 362.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001264/0.09319, allocations: 15.84 kB / 362.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001406/0.09334, allocations: 55.55 kB / 362.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003239/0.09367, allocations: 79.91 kB / 362.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002808/0.09396, allocations: 243 kB / 363.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002081/0.09418, allocations: 102.9 kB / 363.2 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002366/0.09442, allocations: 103.6 kB / 363.3 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001564/0.09459, allocations: 103.5 kB / 363.4 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.269e-05/0.09463, allocations: 8 kB / 363.4 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.576e-05/0.0947, allocations: 16 kB / 363.4 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.261e-05/0.09476, allocations: 39.78 kB / 363.5 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001268/0.0949, allocations: 129.2 kB / 363.6 MB, free: 9.566 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002298/0.09513, allocations: 207.7 kB / 363.8 MB, free: 9.363 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.09515, allocations: 0 / 363.8 MB, free: 9.363 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.09515, allocations: 0 / 363.8 MB, free: 9.363 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.097e-06/0.09517, allocations: 0 / 363.8 MB, free: 9.363 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.0009365/0.09611, allocations: 0.6444 MB / 364.4 MB, free: 8.648 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.294e-05/0.09615, allocations: 8.031 kB / 364.5 MB, free: 8.641 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001825/0.09634, allocations: 40.64 kB / 364.5 MB, free: 8.602 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002784/0.09663, allocations: 243.9 kB / 364.7 MB, free: 8.324 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.642e-05/0.09671, allocations: 54.25 kB / 364.8 MB, free: 8.266 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.883e-05/0.09676, allocations: 16.38 kB / 364.8 MB, free: 8.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005912/0.09736, allocations: 268.1 kB / 365.1 MB, free: 7.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.09738, allocations: 0 / 365.1 MB, free: 7.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.813e-05/0.09741, allocations: 11.98 kB / 365.1 MB, free: 7.969 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.09742, allocations: 4 kB / 365.1 MB, free: 7.965 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005192/0.09795, allocations: 224.2 kB / 365.3 MB, free: 7.746 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00129/0.09925, allocations: 0.7602 MB / 366.1 MB, free: 6.922 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005894/0.09985, allocations: 308.5 kB / 366.4 MB, free: 6.609 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004311/0.1003, allocations: 229 kB / 366.6 MB, free: 6.383 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.769e-05/0.1003, allocations: 4 kB / 366.6 MB, free: 6.379 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000521/0.1009, allocations: 329.9 kB / 366.9 MB, free: 6.027 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.724e-06/0.1009, allocations: 0 / 366.9 MB, free: 6.027 MB / 302.1 MB Notification: Performance of matching and sorting (n=31): time 0.001195/0.1021, allocations: 0.5948 MB / 367.5 MB, free: 5.414 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/0.1022, allocations: 203.9 kB / 367.7 MB, free: 5.172 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001686/0.1024, allocations: 182.6 kB / 367.9 MB, free: 4.977 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.504e-05/0.1024, allocations: 41.7 kB / 367.9 MB, free: 4.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.091e-05/0.1025, allocations: 132.8 kB / 368.1 MB, free: 4.797 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.469e-05/0.1026, allocations: 75 kB / 368.1 MB, free: 4.723 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.777e-05/0.1026, allocations: 45.69 kB / 368.2 MB, free: 4.672 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.1028, allocations: 338.8 kB / 368.5 MB, free: 4.332 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002485/0.103, allocations: 112.6 kB / 368.6 MB, free: 4.219 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002839/0.1033, allocations: 183.2 kB / 368.8 MB, free: 4.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005677/0.1039, allocations: 428.9 kB / 369.2 MB, free: 3.555 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.1039, allocations: 3.938 kB / 369.2 MB, free: 3.551 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007147/0.1046, allocations: 446.2 kB / 369.6 MB, free: 3.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.954e-05/0.1047, allocations: 93.09 kB / 369.7 MB, free: 2.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.1047, allocations: 7.938 kB / 369.7 MB, free: 2.973 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.24e-05/0.1048, allocations: 0 / 369.7 MB, free: 2.973 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001913/0.105, allocations: 47.91 kB / 369.8 MB, free: 2.926 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.235e-06/0.105, allocations: 8.031 kB / 369.8 MB, free: 2.918 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002033/0.1052, allocations: 39.73 kB / 369.8 MB, free: 2.879 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.378e-05/0.1052, allocations: 12 kB / 369.9 MB, free: 2.867 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.0002216/0.1054, allocations: 231.8 kB / 370.1 MB, free: 2.621 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.665e-05/0.1055, allocations: 27.81 kB / 370.1 MB, free: 2.594 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.769e-05/0.1056, allocations: 30.58 kB / 370.1 MB, free: 2.559 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.1056, allocations: 192 / 370.1 MB, free: 2.559 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.1056, allocations: 0 / 370.1 MB, free: 2.559 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.1056, allocations: 11.92 kB / 370.1 MB, free: 2.547 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001381/0.107, allocations: 0.9552 MB / 371.1 MB, free: 1.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.107, allocations: 0 / 371.1 MB, free: 1.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001139/0.1071, allocations: 27.92 kB / 371.1 MB, free: 1.492 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.1071, allocations: 0 / 371.1 MB, free: 1.492 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.524e-05/0.1072, allocations: 8 kB / 371.1 MB, free: 1.484 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.1072, allocations: 3.984 kB / 371.1 MB, free: 1.48 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.1072, allocations: 0 / 371.1 MB, free: 1.48 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009371/0.1081, allocations: 0.6301 MB / 371.8 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.903e-05/0.1082, allocations: 104.8 kB / 371.9 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.876e-05/0.1083, allocations: 15.98 kB / 371.9 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000224/0.1085, allocations: 27.98 kB / 371.9 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.913e-05/0.1086, allocations: 19.97 kB / 371.9 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.836e-05/0.1086, allocations: 8 kB / 371.9 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001047/0.1087, allocations: 151 kB / 372.1 MB, free: 492 kB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1087, allocations: 0 / 372.1 MB, free: 492 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003669/0.1091, allocations: 79.84 kB / 372.2 MB, free: 412 kB / 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.0001524/0.1093, allocations: 121 kB / 372.3 MB, free: 280 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.1436/0.2529, allocations: 0.5491 MB / 372.8 MB, free: 19.47 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.253, allocations: 0 / 372.8 MB, free: 19.47 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006274/0.2536, allocations: 403.5 kB / 373.2 MB, free: 19.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007801/0.2544, allocations: 132 kB / 373.4 MB, free: 19.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009774/0.2554, allocations: 0.6534 MB / 374 MB, free: 19.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001813/0.2556, allocations: 0.7438 MB / 374.8 MB, free: 18.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.958e-05/0.2556, allocations: 21.8 kB / 374.8 MB, free: 18.32 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2557, allocations: 0 / 374.8 MB, free: 18.32 MB / 302.1 MB Notification: Performance of Templates: time 0.005524/0.2612, allocations: 3.096 MB / 377.9 MB, free: 18.16 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