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.001225/0.001225, allocations: 122.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001256/0.001257, allocations: 205.2 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.604/1.604, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 60.09 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3561/0.3576, allocations: 50.55 MB / 409.3 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.004332/0.362, allocations: 2.379 MB / 411.6 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001834/0.3639, allocations: 0.7439 MB / 412.4 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001497/0.364, allocations: 4 kB / 412.4 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002366/0.3643, allocations: 31.66 kB / 412.4 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000138/0.3645, allocations: 59.5 kB / 412.5 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000536/0.365, allocations: 99.75 kB / 412.6 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003777/0.3654, allocations: 271 kB / 412.8 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003099/0.3657, allocations: 111 kB / 412.9 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003454/0.3661, allocations: 123.6 kB / 413.1 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000183/0.3663, allocations: 107.6 kB / 413.2 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.947e-05/0.3663, allocations: 27.94 kB / 413.2 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.833e-05/0.3664, allocations: 27.98 kB / 413.2 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.085e-05/0.3665, allocations: 59.77 kB / 413.3 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001793/0.3667, allocations: 119.5 kB / 413.4 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004131/0.3671, allocations: 288.1 kB / 413.7 MB, free: 13.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.3671, allocations: 0 / 413.7 MB, free: 13.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3671, allocations: 0 / 413.7 MB, free: 13.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.3671, allocations: 3.938 kB / 413.7 MB, free: 13.17 MB / 334.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.001148/0.3683, allocations: 0.6678 MB / 414.3 MB, free: 12.44 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.227e-05/0.3684, allocations: 8.031 kB / 414.4 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002476/0.3686, allocations: 40.55 kB / 414.4 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005604/0.3692, allocations: 251.8 kB / 414.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001035/0.3693, allocations: 46.05 kB / 414.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.087e-05/0.3694, allocations: 20.38 kB / 414.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007012/0.3701, allocations: 260.3 kB / 415 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.3701, allocations: 0 / 415 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.627e-05/0.3701, allocations: 8 kB / 415 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/0.3701, allocations: 7.938 kB / 415 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006191/0.3708, allocations: 204.3 kB / 415.2 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001459/0.3722, allocations: 0.7563 MB / 415.9 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006101/0.3729, allocations: 299.2 kB / 416.2 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004409/0.3733, allocations: 222.1 kB / 416.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.314e-05/0.3734, allocations: 0 / 416.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005664/0.3739, allocations: 320.8 kB / 416.8 MB, free: 9.871 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.653e-06/0.3739, allocations: 0 / 416.8 MB, free: 9.871 MB / 334.1 MB Notification: Performance of matching and sorting (n=31): time 0.001198/0.3752, allocations: 0.578 MB / 417.3 MB, free: 9.277 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001421/0.3753, allocations: 199.9 kB / 417.5 MB, free: 9.039 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001923/0.3755, allocations: 191.4 kB / 417.7 MB, free: 8.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.032e-05/0.3756, allocations: 33.7 kB / 417.7 MB, free: 8.801 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.3757, allocations: 136.7 kB / 417.9 MB, free: 8.66 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.239e-05/0.3757, allocations: 82.98 kB / 418 MB, free: 8.578 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001142/0.3759, allocations: 70.03 kB / 418 MB, free: 8.504 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.376, allocations: 334.8 kB / 418.4 MB, free: 8.168 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002384/0.3763, allocations: 112.6 kB / 418.5 MB, free: 8.055 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002591/0.3765, allocations: 175.3 kB / 418.6 MB, free: 7.863 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005302/0.3771, allocations: 413.4 kB / 419 MB, free: 7.41 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.3771, allocations: 3.938 kB / 419 MB, free: 7.406 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.000667/0.3778, allocations: 426.3 kB / 419.5 MB, free: 6.965 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.185e-05/0.3779, allocations: 101.1 kB / 419.6 MB, free: 6.848 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/0.3779, allocations: 3.938 kB / 419.6 MB, free: 6.844 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.865e-05/0.3779, allocations: 4 kB / 419.6 MB, free: 6.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001901/0.3781, allocations: 44.02 kB / 419.6 MB, free: 6.797 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/0.3781, allocations: 7.938 kB / 419.6 MB, free: 6.789 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001775/0.3783, allocations: 31.77 kB / 419.6 MB, free: 6.758 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.829e-05/0.3783, allocations: 16 kB / 419.7 MB, free: 6.742 MB / 334.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.000228/0.3786, allocations: 236.8 kB / 419.9 MB, free: 6.492 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.398e-05/0.3786, allocations: 23.72 kB / 419.9 MB, free: 6.469 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.237e-05/0.3787, allocations: 30.58 kB / 419.9 MB, free: 6.441 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.3787, allocations: 4 kB / 420 MB, free: 6.438 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.3787, allocations: 0 / 420 MB, free: 6.438 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.3787, allocations: 0 / 420 MB, free: 6.438 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00135/0.3801, allocations: 0.9319 MB / 420.9 MB, free: 5.434 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.3801, allocations: 4 kB / 420.9 MB, free: 5.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001081/0.3802, allocations: 23.92 kB / 420.9 MB, free: 5.406 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/0.3802, allocations: 3.984 kB / 420.9 MB, free: 5.402 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.938e-05/0.3803, allocations: 11.98 kB / 420.9 MB, free: 5.391 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.222e-06/0.3803, allocations: 4.188 kB / 420.9 MB, free: 5.387 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.3803, allocations: 0 / 420.9 MB, free: 5.387 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000924/0.3812, allocations: 0.6164 MB / 421.5 MB, free: 4.738 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.609e-05/0.3813, allocations: 100.8 kB / 421.6 MB, free: 4.621 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.214e-05/0.3814, allocations: 23.98 kB / 421.7 MB, free: 4.598 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002554/0.3816, allocations: 19.92 kB / 421.7 MB, free: 4.578 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.3818, allocations: 27.91 kB / 421.7 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.888e-05/0.3818, allocations: 11.98 kB / 421.7 MB, free: 4.539 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001203/0.3819, allocations: 135.2 kB / 421.9 MB, free: 4.406 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3819, allocations: 0 / 421.9 MB, free: 4.406 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003821/0.3823, allocations: 75.94 kB / 421.9 MB, free: 4.332 MB / 334.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.0002058/0.3825, allocations: 133 kB / 422.1 MB, free: 4.195 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008787/0.3834, allocations: 0.5371 MB / 422.6 MB, free: 3.621 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.3834, allocations: 4.062 kB / 422.6 MB, free: 3.617 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004892/0.3839, allocations: 409 kB / 423 MB, free: 3.195 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006605/0.3846, allocations: 136.9 kB / 423.1 MB, free: 3.074 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001127/0.3857, allocations: 0.5327 MB / 423.7 MB, free: 2.508 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004065/0.3862, allocations: 0.7484 MB / 424.4 MB, free: 1.73 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000168/0.3863, allocations: 53.88 kB / 424.5 MB, free: 1.676 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.236e-05/0.3864, allocations: 19.44 kB / 424.5 MB, free: 1.656 MB / 334.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3864, allocations: 0 / 424.5 MB, free: 1.656 MB / 334.1 MB Notification: Performance of Templates: time 0.008784/0.3952, allocations: 4.283 MB / 428.8 MB, free: 13.43 MB / 350.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/jenkins/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/jenkins/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